Skip to content

Commit

Permalink
ci: prevent cargo metadata from fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed May 23, 2024
1 parent 788b469 commit 808ceac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# We parse this with jq to extract the current version number of the
# software component
jq_query=".packages[] | select(.name == \"${CI_COMPONENT}\") | .version"
CI_SEMVER="$(cargo metadata --format-version=1 | jq -r "${jq_query}")"
CI_SEMVER="$(cargo metadata --format-version=1 --no-deps --frozen --offline | jq -r "${jq_query}")"
echo "CI_SEMVER=${CI_SEMVER}" >>${GITHUB_ENV}
if ! [[ "${CI_SEMVER}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/rust_ci_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def predicate(package):


def workspace_crates():
command = "cargo metadata --format-version=1"
command = "cargo metadata --format-version=1 --no-deps --frozen --offline"
cmd_output = run_with_stdout(command)
metadata = json.loads(cmd_output)
workspace_members = set(metadata["workspace_members"])
Expand Down

0 comments on commit 808ceac

Please sign in to comment.