Skip to content

fix: match bash installer arch fallback and command checks#69

Merged
DaniPopes merged 1 commit into
masterfrom
steven/arch-and-cmd-checks
Jun 11, 2026
Merged

fix: match bash installer arch fallback and command checks#69
DaniPopes merged 1 commit into
masterfrom
steven/arch-and-cmd-checks

Conversation

@stevencartavia

@stevencartavia stevencartavia commented Jun 11, 2026

Copy link
Copy Markdown
Member
  • --arch / FOUNDRYUP_ARCH: unify Arch::detect and Arch::from_str into one normalization that falls back to amd64 for unrecognized values (instead of erroring) and resolves a literal x86_64 to arm64 under Rosetta — matching detect_platform_arch
  • Source and local installs check for git / cargo up front and fail with a clear need 'X' (command not found) message before doing any work

Part of OSS-334

figtracer

This comment was marked as duplicate.

Comment thread src/install.rs
}

async fn install_from_local(config: &Config, local_path: &Path, args: &Cli) -> Result<()> {
need_cmd("cargo")?;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still runs after startup side effects: main has already migrated config, started the update check, printed the banner, checked running bins, and install::run has created dirs. if the goal is to fail before doing any work, this check likely needs to be hoisted to the top-level dispatch.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed live: with cargo missing, foundryup --path ... still prints the banner and creates .foundry/{bin,versions,share/man/man1} before need 'cargo'; with git missing, foundryup --branch ... does the same before need 'git'. So this thread is still relevant.

Tests: targeted tests pass; full suite passes when foundry_bins is run serially.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think thats fine

@DaniPopes DaniPopes merged commit 55eab71 into master Jun 11, 2026
12 checks passed
@DaniPopes DaniPopes deleted the steven/arch-and-cmd-checks branch June 11, 2026 14:10
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.

3 participants