Upgrade Anchor programs to 1.1.2#84
Merged
Merged
Conversation
Bump anchor-lang and anchor-spl from 1.0.0 to the latest stable 1.1.2 across all Anchor program manifests, update the workspace Cargo.lock, and pin the Anchor CLI in anchor.yml CI to 1.1.2 to match.
The Anchor workflow computed its project list with `find ... | grep -vE "$ignore_pattern"`. With .ghaignore now empty, ignore_pattern is empty and `grep -vE ""` matches every line, so the inverted match dropped every project: the build-and-test matrix was empty and the workflow reported success without building anything. Guard the filter so it only runs when a pattern exists, matching the fix already present in native.yml, pinocchio.yml and solana-asm.yml.
…ual-futures tests anchor build's IDL generation compiles the integration tests before all program .so files exist. The vault-strategy and perpetual-futures tests loaded their sibling mock program (mock_swap_router / mock_switchboard) with include_bytes!, which is evaluated at compile time, so the build failed with 'couldn't read .../mock_swap_router.so: No such file'. Read the sibling .so at runtime with std::fs::read instead, matching the existing cross-program-invocation/hand test. Each program's own .so is still include_bytes! since anchor builds it before its own IDL step.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades every Anchor program to the latest stable Anchor, 1.1.2 (up from
1.0.0).At the time of writing crates.io lists
1.1.2asmax_stable_version(the highest semver) and1.0.3as the most recent patch on the 1.0.x line. Since a 1.0 → 1.1 bump is backward-compatible under semver, this standardizes on1.1.2— the genuine latest stable.Changes
anchor-langandanchor-splfrom1.0.0to1.1.2across all 57 Anchor programCargo.tomlmanifests.Cargo.lockso the Anchor crate tree resolves to1.1.2..github/workflows/anchor.yml(anchor-version: 1.1.2) so the build tooling matches the crate version, with a comment explaining the pin.Verification
cargo metadataresolves the workspace cleanly against the updated lock. Fullanchor build/anchor testfor all programs runs in CI — I'm watching the Anchor workflow and will fix any failures the version bump surfaces.🤖 Generated with Claude Code
Generated by Claude Code