From c4da0505d8bc473da8996d19a9c7335b7d91339a Mon Sep 17 00:00:00 2001 From: xxchan Date: Mon, 20 Jan 2025 17:08:23 +0800 Subject: [PATCH] build: fix Cargo.lock and pass --locked in CI (#5565) --- .github/workflows/ci_core.yml | 8 ++++---- core/Cargo.lock | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_core.yml b/.github/workflows/ci_core.yml index 1317b1b6590d..0d0137309cb6 100644 --- a/.github/workflows/ci_core.yml +++ b/.github/workflows/ci_core.yml @@ -108,7 +108,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Build working-directory: core - run: cargo build + run: cargo build --locked build_all_features: runs-on: ubuntu-latest @@ -133,7 +133,7 @@ jobs: - name: Build working-directory: core - run: cargo build --all-features + run: cargo build --all-features --locked build_all_platforms: runs-on: ${{ matrix.os }} @@ -213,7 +213,7 @@ jobs: services-webdav services-webhdfs ) - cargo build --features "${FEATURES[*]}" + cargo build --features "${FEATURES[*]}" --locked # We only support some services(see `available_services` below) for now. build_under_wasm: @@ -233,7 +233,7 @@ jobs: services-s3 ) rustup target add wasm32-unknown-unknown - cargo build --target wasm32-unknown-unknown --no-default-features --features="${FEATURES[*]}" + cargo build --target wasm32-unknown-unknown --no-default-features --features="${FEATURES[*]}" --locked unit: runs-on: ubuntu-latest diff --git a/core/Cargo.lock b/core/Cargo.lock index c409e9d6d3c2..dacd86958436 100644 --- a/core/Cargo.lock +++ b/core/Cargo.lock @@ -5118,6 +5118,7 @@ dependencies = [ "mini-moka", "moka", "mongodb", + "mongodb-internal-macros", "monoio", "once_cell", "openssh",