Skip to content

refactor: harden feature install scripts#66

Open
mikaello wants to merge 2 commits into
mainfrom
harden-install-scripts
Open

refactor: harden feature install scripts#66
mikaello wants to merge 2 commits into
mainfrom
harden-install-scripts

Conversation

@mikaello
Copy link
Copy Markdown
Owner

Summary

  • Drop unreachable amd64 / arm64 branches from the architecture check in both kotlinc and modern-shell-utils. uname -m on Linux returns x86_64 or aarch64; the dpkg/macOS spellings can never match.
  • Renumber modern-shell-utils steps so the trace reads Step 1..Step 6 instead of a Step 4.5 interlude.
  • Use ln -sf for the fd / bat symlinks so re-running the script does not fail with "File exists" when those symlinks already exist (e.g. when the feature is rebuilt over an existing layer).

Test plan

  • CI workflow test.yaml runs both features on debian:latest, ubuntu:latest, and mcr.microsoft.com/devcontainers/base:ubuntu and the per-feature test.sh checks pass.
  • Manually verify on an arm64 host that the arch check still passes (it should — aarch64 is preserved).

mikaello added 2 commits May 16, 2026 22:59
`uname -m` on Linux returns `x86_64` or `aarch64`; `amd64` and `arm64`
are dpkg / macOS spellings that the kernel never produces, so those
branches were dead.
- Renumber "Step 4.5" / "Step 5" to "Step 5" / "Step 6" so the trace
  reads sequentially.
- Use `ln -sf` so re-running the script (e.g. after rebuild on top of
  an existing layer) replaces the symlinks instead of failing on "File
  exists".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant