The CI is using the latest version of foundry.
This leads to unstable builds, which can break at any time.
This has happened recently with forge test panicking by not being able to resolve paths correctly.
✔️ Solution
We should change the workflow file to install a specific version of foundry.
You can see there are some options on foundryup that allow this configuration.
$ foundrup -h
The installer for Foundry.
Update or revert to a specific Foundry version with ease.
USAGE:
foundryup <OPTIONS>
OPTIONS:
-h, --help Print help information
-v, --version Install a specific version
-b, --branch Install a specific branch
-P, --pr Install a specific Pull Request
-C, --commit Install a specific commit
-r, --repo Install from a remote GitHub repo (uses default branch if no other options are set)
-p, --path Install a local repository
📚 Context
The CI is using the latest version of
foundry
. This leads to unstable builds, which can break at any time. This has happened recently withforge test
panicking by not being able to resolve paths correctly.✔️ Solution
We should change the workflow file to install a specific version of
foundry
. You can see there are some options onfoundryup
that allow this configuration.