Skip to content

Commit

Permalink
Merge pull request #215 from ZettaScaleLabs/update-sync-lock
Browse files Browse the repository at this point in the history
fix: update sync lock file script for zenoh-c
  • Loading branch information
Mallets authored Sep 12, 2024
2 parents 9a02c12 + 517153e commit 6e61484
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/sync-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,20 @@ jobs:
name: Cargo.lock
path: ${{ steps.crate-path.outputs.value }}

# Another ugly workaround, since zenoh-c has an additional Cargo.lock not in the root
- name: Override ${{ matrix.dependant }} build-resources lockfile with Zenoh's
if: ${{ matrix.dependant == 'zenoh-c' }}
run: cp Cargo.lock build-resources/opaque-types/Cargo.lock

- name: Rectify lockfile
# NOTE: Checking the package for errors will rectify the Cargo.lock while preserving
# the dependency versions fetched from source.
run: cargo check --manifest-path ${{ steps.crate-path.outputs.value }}/Cargo.toml

- name: Rectify lockfile for zenoh-c build-resources
if: ${{ matrix.dependant == 'zenoh-c' }}
run: cargo check --manifest-path build-resources/opaque-types/Cargo.toml

- name: Create/Update a pull request if the lockfile changed
id: cpr
# NOTE: If there is a pending PR, this action will simply update it with a forced push.
Expand Down

0 comments on commit 6e61484

Please sign in to comment.