Skip to content

Upgrade Anchor programs to 1.1.2#84

Merged
mikemaccana merged 3 commits into
mainfrom
claude/anchor-1-02-upgrade-3p3ret
Jun 30, 2026
Merged

Upgrade Anchor programs to 1.1.2#84
mikemaccana merged 3 commits into
mainfrom
claude/anchor-1-02-upgrade-3p3ret

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

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.2 as max_stable_version (the highest semver) and 1.0.3 as the most recent patch on the 1.0.x line. Since a 1.0 → 1.1 bump is backward-compatible under semver, this standardizes on 1.1.2 — the genuine latest stable.

Changes

  • Bumped anchor-lang and anchor-spl from 1.0.0 to 1.1.2 across all 57 Anchor program Cargo.toml manifests.
  • Updated the workspace Cargo.lock so the Anchor crate tree resolves to 1.1.2.
  • Pinned the Anchor CLI in .github/workflows/anchor.yml (anchor-version: 1.1.2) so the build tooling matches the crate version, with a comment explaining the pin.
  • Added a CHANGELOG entry.

Verification

cargo metadata resolves the workspace cleanly against the updated lock. Full anchor build / anchor test for 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

claude added 3 commits June 30, 2026 00:23
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.
@mikemaccana mikemaccana merged commit eae5294 into main Jun 30, 2026
31 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.

2 participants