Repository navigation
refactor: move ICU env vars from build script to nix shell config #1325
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 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -139,9 +139,16 @@ build_repo() { | |||||||||||||||||
| # Install tools via mise if mise.toml is present | ||||||||||||||||||
| if [ -f "$build_dir/mise.toml" ] && command -v mise >/dev/null 2>&1; then | ||||||||||||||||||
| log_step " Installing tools via mise..." | ||||||||||||||||||
| (cd "$build_dir" && mise trust 2>&1) || true | ||||||||||||||||||
| (cd "$build_dir" && mise install 2>&1) || true | ||||||||||||||||||
| fi | ||||||||||||||||||
|
|
||||||||||||||||||
| # Initialize git submodules if .gitmodules exists | ||||||||||||||||||
| if [ -f "$repo_dir/.gitmodules" ]; then | ||||||||||||||||||
| log_step " Initializing submodules..." | ||||||||||||||||||
| (cd "$repo_dir" && git submodule update --init --recursive 2>&1) || true | ||||||||||||||||||
|
Comment on lines
+146
to
+149
|
||||||||||||||||||
| # Initialize git submodules if .gitmodules exists | |
| if [ -f "$repo_dir/.gitmodules" ]; then | |
| log_step " Initializing submodules..." | |
| (cd "$repo_dir" && git submodule update --init --recursive 2>&1) || true | |
| # Initialize git submodules if .gitmodules exists in the build directory | |
| if [ -f "$build_dir/.gitmodules" ]; then | |
| log_step " Initializing submodules..." | |
| (cd "$build_dir" && git submodule update --init --recursive 2>&1) || true |
Copilot
AI
Apr 1, 2026
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.
Using make -n build as a proxy for 'target exists' can misclassify real Makefile errors (e.g., missing included files, syntax errors, required env) as 'no build target', causing the script to silently fall through to other build systems and hide the actual failure. A more reliable approach is to only fall through when the failure is specifically 'No rule to make target …', and otherwise treat it as a genuine Makefile error (return non-zero and surface the output).
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.
mise trustpersists a trust decision for the directory (and potentially its tool config) into the user’s mise trust store. Running it automatically inside an update/build script can unintentionally trust configs from repos the user didn’t explicitly approve. Prefer avoiding persistent trust changes from automation (e.g., require an explicit opt-in flag/env var before runningmise trust, or use a scoped/non-persistent mechanism if mise supports it), so the script can build without mutating global trust state.