Skip to content

fix(aztec-up): pass VERSION to per-version installer and fix release sed#22083

Merged
nchamo merged 1 commit intomerge-train/fairiesfrom
fix/aztec-up-install-version-propagation
Mar 26, 2026
Merged

fix(aztec-up): pass VERSION to per-version installer and fix release sed#22083
nchamo merged 1 commit intomerge-train/fairiesfrom
fix/aztec-up-install-version-propagation

Conversation

@nchamo
Copy link
Copy Markdown
Contributor

@nchamo nchamo commented Mar 26, 2026

Problem

bash -i <(curl -sL https://install.aztec.network) fails for all new users with two different errors depending on whether VERSION is set:

  • Without VERSION: the per-version installer fails with VERSION: VERSION must be set because aztec-up's cmd_install pipes the installer into a bare bash without passing VERSION as an env var. This was intentionally removed in e44fe38 to rely on hardcoded versions at release time, but the live per-version installers on S3 (e.g. 4.1.2/install) were released before that change and still expect VERSION from the environment.

  • With VERSION=latest: the per-version installer gets the literal string latest (never resolved to a semver like 4.1.2), then tries to fetch https://install.aztec-labs.com/latest/versions which 404s. This happens because release_root_installer in bootstrap.sh runs sed "s/^VERSION=.*/VERSION=${VERSION:-latest}/" which replaces every line starting with VERSION=, including the VERSION=$(resolve_version "$VERSION") call on line 64 of aztec-install. The live root installer at install.aztec.network therefore never resolves aliases.

Fix

  • aztec-up/bin/0.0.1/aztec-up: Restore VERSION="$resolved_version" as an env var prefix on the curl | bash line in cmd_install, so the per-version installer always receives the resolved semver regardless of what's in the parent environment.

  • aztec-up/bootstrap.sh: Narrow the sed pattern in release_root_installer from ^VERSION=.* to ^VERSION=\${VERSION:-.*} so it only replaces the default-value assignment on line 32 and leaves the resolve_version call on line 64 intact.

After merging, release_root_installer must be re-run manually to push the corrected root installer to S3.

Fixes F-502

@nchamo nchamo added the ci-draft Run CI on draft PRs. label Mar 26, 2026
@nchamo nchamo self-assigned this Mar 26, 2026
@nchamo nchamo marked this pull request as ready for review March 26, 2026 23:04
@nchamo nchamo requested a review from charlielye as a code owner March 26, 2026 23:04
@nchamo nchamo merged commit 6d7d484 into merge-train/fairies Mar 26, 2026
20 of 28 checks passed
@nchamo nchamo deleted the fix/aztec-up-install-version-propagation branch March 26, 2026 23:14
@AztecBot
Copy link
Copy Markdown
Collaborator

✅ Successfully backported to backport-to-v4-next-staging #22075.

AztecBot added a commit that referenced this pull request Mar 27, 2026
BEGIN_COMMIT_OVERRIDE
fix(aztec-up): always reinstall noirup and foundryup bootstrappers
(#21826)
fix(aztec-up): show installed version after install (#21822)
feat(aztec-up): default install version to latest instead of nightly
(backport #21883) (#22076)
feat(aztec-up): auto-update before install with staleness check (#21866)
cherry-pick: feat(aztec-up): add versioned aliases for multi-major
version support (#21817)
feat(aztec-up): add versioned aliases for multi-major version support
(backport #21817) (#22080)
feat(aztec-up): decouple infra assets from toolchain VERSION (backport
#22078) (#22079)
feat: backport hardcode version into install scripts at release time
(#22082)
fix(aztec-up): pass VERSION to per-version installer and fix release sed
(#22083)
END_COMMIT_OVERRIDE
github-merge-queue bot pushed a commit that referenced this pull request Mar 27, 2026
BEGIN_COMMIT_OVERRIDE
feat(aztec-up): default install version to latest instead of nightly
(#21883)
fix(aztec-up): always reinstall noirup and foundryup bootstrappers
(#21826)
fix(aztec-up): show installed version after install (#21822)
feat(aztec-up): decouple infra assets from toolchain VERSION (#22078)
feat(aztec-up): add versioned aliases for multi-major version support
(#21817)
feat(aztec-up): auto-update before install with staleness check (#21866)
fix(aztec-up): pass VERSION to per-version installer and fix release sed
(#22083)
feat: asserts that aztec dep version matches cli (#21245)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants