From d83f1302433ea238f76430715c1c02e2644bacee Mon Sep 17 00:00:00 2001 From: Amie Corso Date: Fri, 12 Jun 2026 09:47:46 -0700 Subject: [PATCH] feat(foundryup): announce Base mode on `base-forge test` The base-forge wrapper now prints one line to stderr on the `test` subcommand (e.g. 'base-forge: Base precompiles enabled for this test run (Base build, not stock Foundry)'), so it's obvious a run used the Base precompiles vs stock Foundry. forge is the only Base tool with a test subcommand, so only its wrapper is branched; cast/anvil/chisel wrappers are unchanged. Bumps installer version 1.8.0 -> 1.8.1. --- foundryup/foundryup | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/foundryup/foundryup b/foundryup/foundryup index 42a1bf6c6..5655ba745 100755 --- a/foundryup/foundryup +++ b/foundryup/foundryup @@ -3,7 +3,7 @@ set -eo pipefail # NOTE: if you make modifications to this script, please increment the version number. # WARNING: the SemVer pattern: major.minor.patch must be followed as we use it to determine if the script is up to date. -FOUNDRYUP_INSTALLER_VERSION="1.8.0" +FOUNDRYUP_INSTALLER_VERSION="1.8.1" BASE_DIR=${XDG_CONFIG_HOME:-$HOME} FOUNDRY_DIR=${FOUNDRY_DIR:-"$BASE_DIR/.foundry"} @@ -585,14 +585,27 @@ use() { # anvil), so `base-forge test` / `base-anvil` just work with no # foundry.toml changes. The real binary stays in the versioned dir. real_bin="$FOUNDRY_VERSION_DIR/$bin" - anvil_flag="" - [ "$bin" = "anvil" ] && anvil_flag=" --base" - cat > "$bin_path" < "$bin_path" <&2 +exec env FOUNDRY_BASE=true "$real_bin" "\$@" +WRAP + else + anvil_flag="" + [ "$bin" = "anvil" ] && anvil_flag=" --base" + cat > "$bin_path" < $real_bin" continue