This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new c4da0505d build: fix Cargo.lock and pass --locked in CI (#5565)
c4da0505d is described below

commit c4da0505d8bc473da8996d19a9c7335b7d91339a
Author: xxchan <[email protected]>
AuthorDate: Mon Jan 20 17:08:23 2025 +0800

    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 1317b1b65..0d0137309 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 c409e9d6d..dacd86958 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",

Reply via email to