-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Keep `libcnb.rs` tools in sync Because the languages CLI tooling depends on `libcnb-package` to determine build information, this should be kept in sync with the version of `libcnb-cargo` installed in the `_buildpacks-release.yml` workflow so that we can be sure that behavior of the `libcnb.rs` tooling is consistent.
- Loading branch information
1 parent
f27dde0
commit 8516f42
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,10 +75,16 @@ jobs: | |
- name: Rust cache | ||
uses: Swatinem/[email protected] | ||
|
||
# the version of `libcnb-cargo` installed here is kept in sync with the version of `libcnb-package` | ||
# that the release automation CLI tooling depends on | ||
- name: Install libcnb-cargo | ||
# TODO: Derive this version from the `libcnb-package` version in this repo's `Cargo.toml`, | ||
# or at least add a CI check to ensure the two versions are in sync. | ||
run: cargo install --locked [email protected] | ||
run: | | ||
LOCKFILE_URL="https://raw.githubusercontent.com/heroku/languages-github-actions/${{ inputs.languages_cli_branch }}/Cargo.lock" | ||
LIBCNB_PACKAGE_VERSION=$( \ | ||
curl --silent --show-error --fail --retry 5 --retry-all-errors --connect-timeout 10 --max-time 60 "${LOCKFILE_URL}" \ | ||
| yq -ptoml -oyaml '.package[] | select(.name == "libcnb-package") | .version' \ | ||
) | ||
cargo install --locked "libcnb-cargo@${LIBCNB_PACKAGE_VERSION}" | ||
- name: Install Languages CLI | ||
uses: heroku/languages-github-actions/.github/actions/install-languages-cli@main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters