diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f13266772c78..d824a597ffc0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -521,6 +521,12 @@ jobs: steps: - name: 📂 Checkout code uses: actions/checkout@v5 + - name: Prepare for MSRV testing + # Resolver v3 requires Rust 1.84+ to parse the Cargo.toml, but our library MSRV is 1.75. + # We temporarily downgrade to resolver v2 for MSRV testing. + run: | + echo "Patching Cargo.toml for MSRV testing (resolver v3 requires Rust 1.84+)" + sed -i 's/resolver = "3"/resolver = "2"/g' Cargo.toml - uses: baptiste0928/cargo-install@v3 with: crate: cargo-msrv diff --git a/Cargo.toml b/Cargo.toml index afa8ba4ea7cf..8bf8e998ebe2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ members = [ "prqlc/prqlc/examples/compile-files", # An example "web/book", ] -resolver = "2" +resolver = "3" [workspace.package] authors = ["PRQL Developers"]