fix(aztec-up): pass VERSION to per-version installer and fix release sed#22083
Merged
nchamo merged 1 commit intomerge-train/fairiesfrom Mar 26, 2026
Merged
Conversation
nventuro
approved these changes
Mar 26, 2026
AztecBot
pushed a commit
that referenced
this pull request
Mar 26, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
bash -i <(curl -sL https://install.aztec.network)fails for all new users with two different errors depending on whetherVERSIONis set:Without
VERSION: the per-version installer fails withVERSION: VERSION must be setbecauseaztec-up'scmd_installpipes the installer into a barebashwithout passingVERSIONas 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 expectVERSIONfrom the environment.With
VERSION=latest: the per-version installer gets the literal stringlatest(never resolved to a semver like4.1.2), then tries to fetchhttps://install.aztec-labs.com/latest/versionswhich 404s. This happens becauserelease_root_installerinbootstrap.shrunssed "s/^VERSION=.*/VERSION=${VERSION:-latest}/"which replaces every line starting withVERSION=, including theVERSION=$(resolve_version "$VERSION")call on line 64 ofaztec-install. The live root installer atinstall.aztec.networktherefore never resolves aliases.Fix
aztec-up/bin/0.0.1/aztec-up: RestoreVERSION="$resolved_version"as an env var prefix on thecurl | bashline incmd_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 inrelease_root_installerfrom^VERSION=.*to^VERSION=\${VERSION:-.*}so it only replaces the default-value assignment on line 32 and leaves theresolve_versioncall on line 64 intact.After merging,
release_root_installermust be re-run manually to push the corrected root installer to S3.Fixes F-502