Skip to content

feat(aztec-up): auto-update before install with staleness check#21866

Merged
nchamo merged 1 commit intomerge-train/fairiesfrom
feat/aztec-up-auto-update
Mar 26, 2026
Merged

feat(aztec-up): auto-update before install with staleness check#21866
nchamo merged 1 commit intomerge-train/fairiesfrom
feat/aztec-up-auto-update

Conversation

@nchamo
Copy link
Copy Markdown
Contributor

@nchamo nchamo commented Mar 20, 2026

Why we are doing this

aztec-up has a self-update command, but we currently don't have any versioning system. We are now introducing an automatic update workflow, similar to rustup and brew.

Now, when a user runs aztec-up install <version>, we will automatically download the latest version of aztec-up and install it for future use. Similarly to Homebrew, we:

  • Will check once per window (24h)
  • Won't block on failure
  • Will let users opt out via AZTEC_NO_AUTO_UPDATE env var

What the user sees

During aztec-up install <version>:

  • If aztec-up was updated: "prints aztec-up has been updated. Changes take effect on next run". and the install proceeds normally
  • If already up to date: nothing, the install proceeds silently
  • If the update check fails (e.g. offline): prints a yellow warning and the install proceeds normally
  • If AZTEC_NO_AUTO_UPDATE is set: the check is skipped entirely

Fixes F-444

IMPORTANT!

When we do decide to merge this change, we should prepare to release a new version of the root version ASAP. At the time of writing, the root version is quite old so auto-updating would send users to an old version

@nchamo nchamo requested a review from charlielye as a code owner March 20, 2026 19:56
@nchamo nchamo self-assigned this Mar 20, 2026
@nchamo nchamo marked this pull request as draft March 20, 2026 19:56
@nchamo nchamo added the ci-draft Run CI on draft PRs. label Mar 20, 2026
Comment thread aztec-up/bin/0.0.1/aztec-install
@nchamo nchamo requested review from mverzilli and nventuro March 20, 2026 20:11
@nchamo nchamo marked this pull request as ready for review March 20, 2026 20:12
Copy link
Copy Markdown
Contributor

@mverzilli mverzilli left a comment

Choose a reason for hiding this comment

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

Nice!

Base automatically changed from merge-train/fairies to next March 26, 2026 04:08
@nchamo
Copy link
Copy Markdown
Contributor Author

nchamo commented Mar 26, 2026

IMPORTANT!

When we do decide to merge this change, we should prepare to release a new version of the root version ASAP. At the time of writing, the root version is quite old so auto-updating would send users to an old version

@nchamo nchamo changed the base branch from next to merge-train/fairies March 26, 2026 18:01
@nchamo nchamo merged commit 2630864 into merge-train/fairies Mar 26, 2026
38 of 42 checks passed
@nchamo nchamo deleted the feat/aztec-up-auto-update branch March 26, 2026 19:54
@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