-
Notifications
You must be signed in to change notification settings - Fork 1
fix: set zigbuild for ubuntu #355
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
base: main
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -24,10 +24,8 @@ shift || true | |
| os_name=$(uname -s || echo unknown) | ||
| arch=$(uname -m || echo unknown) | ||
|
|
||
| # Always use zigbuild so binaries are portable between host and container. | ||
| use_zigbuild=true | ||
|
Comment on lines
24
to
28
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.
Two related points:
🧰 Tools🪛 Shellcheck (0.11.0)[warning] 24-24: os_name appears unused. Verify use (or export if used externally). (SC2034) [warning] 25-25: arch appears unused. Verify use (or export if used externally). (SC2034) 🤖 Prompt for AI Agents |
||
| if [[ ${os_name} == Linux && ${arch} == x86_64 ]]; then | ||
| use_zigbuild=false | ||
| fi | ||
|
|
||
| if [[ ${target} == "brr" ]]; then | ||
| if [[ ${use_zigbuild} == true ]]; then | ||
|
Comment on lines
+27
to
31
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.
Setting Useful? React with 👍 / 👎. |
||
|
|
||
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.
By hardcoding
use_zigbuild=true, the variablesos_nameandarch(defined on lines 24-25) are now unused. Furthermore, the conditional checksif [[ ${use_zigbuild} == true ]]; thenon lines 31 and 51 are now redundant, making the correspondingelsebranches dead code. Consider removing the unused variables and simplifying the control flow to improve the script's maintainability.