-
Notifications
You must be signed in to change notification settings - Fork 10
Post release v1.3.1 #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -50,7 +50,7 @@ func main() { | |||||
| app := &cli.App{ | ||||||
| Name: "codeowners-cli", | ||||||
| Usage: "CLI tool for working with .codeowners files", | ||||||
| Version: "v1.3.1.dev", | ||||||
| Version: "v1.3.2.dev", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding the version string requires manual updates and is prone to errors. A more robust practice is to inject the version at build time using To implement this, you can define a package-level variable and use it here. Then, set its value during the build process.
This will make your release process more automated and less error-prone.
Suggested change
|
||||||
| Description: "", | ||||||
| Commands: []*cli.Command{ | ||||||
| { | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While updating the example to use the new version tag is correct, there's a significant underlying issue with how this action is versioned. The
action.ymlfile currently points to thelatestDocker image:image: 'docker://ghcr.io/multimediallc/codeowners-plus:latest'.This means that regardless of the version specified in the
usesclause (e.g.,@v1.3.1), users will always execute the code from thelatestDocker image. This defeats the purpose of version pinning and can lead to unexpected pipeline failures if breaking changes are introduced.To fix this, the release process should be updated to:
ghcr.io/multimediallc/codeowners-plus:v1.3.1).action.ymlin the corresponding git tag to point to that versioned Docker image.This is a crucial fix for providing a stable and reliable action for your users. Since
action.ymlis not part of this PR, this should be addressed in a follow-up.