Skip to content

docs: update compiler compatibility commands in CONTRIBUTING - #926

Merged
mattsse merged 4 commits into
foundry-rs:masterfrom
imitater-dou:docs/contributing-solc-min
Oct 23, 2026
Merged

mattsse merged 4 commits into
foundry-rs:masterfrom
imitater-dou:docs/contributing-solc-min

Conversation

@imitater-dou

Copy link
Copy Markdown

Motivation

#767 raised the minimum supported compiler to 0.8.13: every src/ file now has a >=0.8.13 pragma (for example src/Test.sol is pragma solidity >=0.8.13 <0.9.0;), and .github/workflows/ci.yml builds with SOLC_MINIMUM: "0.8.13".

CONTRIBUTING.md was not updated in that PR, so the "compatible with all compiler version targets" section still lists:

forge build --skip test --use solc:0.6.2
forge build --skip test --use solc:0.6.12
forge build --skip test --use solc:0.7.0
forge build --skip test --use solc:0.7.6
forge build --skip test --use solc:0.8.0

None of these versions satisfy the current pragmas, so running the documented commands fails with a compiler-version error.

Solution

Replace them with the minimum-version builds that CI runs (--use solc:0.8.13, with and without --via-ir), and say in the sentence above them that 0.8.13 is the minimum supported version. The latest-version builds are left to CI, so the doc won't go stale every time SOLC_LATEST is bumped.

Docs-only change; no code touched.

The minimum supported solc version was raised to 0.8.13 in foundry-rs#767: every
pragma under src/ now requires 0.8.13 or newer and CI builds with
SOLC_MINIMUM 0.8.13. CONTRIBUTING.md still told contributors to build
with solc 0.6.2, 0.6.12, 0.7.0, 0.7.6 and 0.8.0, which can no longer
compile the library.

List the 0.8.13 builds that CI runs (with and without --via-ir) instead.

Signed-off-by: ADou <ikun3.1415927@gmail.com>
@mattsse
mattsse enabled auto-merge (squash) October 23, 2026 07:00
@mattsse
mattsse merged commit 9964d28 into foundry-rs:master Oct 23, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants