Skip to content

fix(aztec-up): pin FOUNDRY_DIR in foundry install to avoid XDG_CONFIG_HOME mismatch#22886

Merged
nchamo merged 1 commit into
merge-train/fairiesfrom
fix/aztec-up-foundry-install-path
Apr 30, 2026
Merged

fix(aztec-up): pin FOUNDRY_DIR in foundry install to avoid XDG_CONFIG_HOME mismatch#22886
nchamo merged 1 commit into
merge-train/fairiesfrom
fix/aztec-up-foundry-install-path

Conversation

@nchamo
Copy link
Copy Markdown
Contributor

@nchamo nchamo commented Apr 30, 2026

Problem

The foundry installer (foundry.paradigm.xyz) uses $XDG_CONFIG_HOME/.foundry as the install directory when XDG_CONFIG_HOME is set, instead of $HOME/.foundry. On CI runners where XDG_CONFIG_HOME is set, foundryup gets installed to an unexpected path (e.g. /home/runner/.config/.foundry/bin/foundryup), causing the subsequent foundryup invocation to fail with "No such file or directory".

Fix

Pin FOUNDRY_DIR="$HOME/.foundry" on both sides of the curl | bash pipe so we control where foundryup is installed regardless of the caller's environment.

@nchamo nchamo requested a review from charlielye as a code owner April 30, 2026 19:55
@nchamo nchamo self-assigned this Apr 30, 2026
@nchamo nchamo requested a review from vezenovm April 30, 2026 20:11
@nchamo nchamo enabled auto-merge (squash) April 30, 2026 20:11
@nchamo nchamo merged commit c2d424d into merge-train/fairies Apr 30, 2026
21 of 25 checks passed
@nchamo nchamo deleted the fix/aztec-up-foundry-install-path branch April 30, 2026 20:15
AztecBot pushed a commit that referenced this pull request Apr 30, 2026
@AztecBot
Copy link
Copy Markdown
Collaborator

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

nchamo added a commit that referenced this pull request Apr 30, 2026
BEGIN_COMMIT_OVERRIDE
fix(aztec-up): run acceptance test after CI3 completes release (#22850)
feat(aztec-nr): assert contract function return types and params are
serializable (#22877)
fix(aztec-up): pin FOUNDRY_DIR in foundry install to avoid
XDG_CONFIG_HOME mismatch (#22886)
END_COMMIT_OVERRIDE
chrismarino pushed a commit to chrismarino/aztec-packages that referenced this pull request May 5, 2026
BEGIN_COMMIT_OVERRIDE
fix(aztec-up): run acceptance test after CI3 completes release (AztecProtocol#22850)
feat(aztec-nr): assert contract function return types and params are
serializable (AztecProtocol#22877)
fix(aztec-up): pin FOUNDRY_DIR in foundry install to avoid
XDG_CONFIG_HOME mismatch (AztecProtocol#22886)
END_COMMIT_OVERRIDE
critesjosh added a commit that referenced this pull request May 18, 2026
Covers operator-facing changes in v4.3.0:
- Bundled binaries renamed under aztec- prefix on PATH (#22902, #22709)
- --pxe flag removed from aztec start (#22867)
- aztec-up pins manifest Node version (#23201)
- aztec-up pins FOUNDRY_DIR (#22886)

Added to both source docs-operate/ and the v4.3.0 versioned snapshot,
and linked from the operator changelog sidebar in both places.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants