-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: adds a left rail for the command preview in runfile #44
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 |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ bin/ | |
| Taskfile.yml | ||
| go.work* | ||
| tags | ||
| .nixy | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,22 @@ packages: | |
| - pre-commit | ||
| - gotestfmt | ||
|
|
||
| builds: | ||
| runfile: | ||
| command: |+ | ||
| echo "VERSION: $VERSION" | ||
|
|
||
| onShellEnter: |+ | ||
| export PATH="/workspace/bin:$PATH" | ||
| source $HOME/.profile | ||
| run build GOOS=linux GOARCH=amd64 version=$VERSION | ||
| run build GOOS=linux GOARCH=arm64 version=$VERSION | ||
| run build GOOS=darwin GOARCH=amd64 version=$VERSION | ||
| run build GOOS=darwin GOARCH=arm64 version=$VERSION | ||
|
Comment on lines
+12
to
+17
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. issue (bug_risk): VERSION env usage here may not be wired correctly into the Runfile The |
||
|
|
||
| paths: | ||
| - ./bin/run-linux-amd64 | ||
| - ./bin/run-linux-arm64 | ||
| - ./bin/run-darwin-amd64 | ||
| - ./bin/run-darwin-arm64 | ||
|
|
||
| # onShellEnter: |+ | ||
| # export PATH="/workspace/bin:$PATH" | ||
| # # source $HOME/.profile | ||
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.
issue (bug_risk): Mismatch between
versionenv key and use of$VERSIONin the build command likely results in an empty version string.versionis defined in the task env (lowercase), but thego buildcommand uses$VERSION(uppercase). Unless something else exportsVERSION,main.Versionwill be empty.To align them, either:
$versionin the-ldflagsand rely on Runfile env injection, orVERSIONand keep using$VERSION.The same issue applies to
build:dev, whereversion: "nightly"is set but$VERSIONis referenced, so the nightly marker may never be applied.