mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Use --locked when building in CI (#31720)
Thus the build will immediately fail if a PR modifies Cargo.toml but forgets to include the changes in Cargo.lock This was previously checked by lockfile_changed.sh after building normally, wasting resources.
This commit is contained in:
parent
ecabdc2583
commit
ea62a5e24f
5 changed files with 4 additions and 19 deletions
|
@ -1,13 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
diff="$(find . -name 'Cargo.lock' -print0 | xargs -0 git diff)"
|
||||
echo "${diff}"
|
||||
[[ -z "${diff}" ]]
|
Loading…
Add table
Add a link
Reference in a new issue