Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin the libcnb-cargo version to the same version as libcnb-package #124

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Aug 18, 2023

The workflows in this repo use libcnb in two ways:

  1. As a library (specifically libcnb-package and libcnb-data)
  2. As a binary (cargo libcnb package)

The version of (1) is controlled by Cargo.toml / Cargo.lock in this repo.

Previously the version of (2) wasn't pinned at all, and instead the latest version would be used, meaning that version could get out of sync with that of (1).

Now, the version is manually pinned to the same version as in Cargo.toml.

Longer term this should either be replaced by deriving the version in the workflow, or at least having a CI check/lint that ensures the two are in sync.

However, for the short term we want to just fix CNB releases after the 0.14.0 libcnb release, until we have time to make the necessary changes in #120.

GUS-W-13977410.

The workflows in this repo use libcnb in two ways:
1. As a library (specifically `libcnb-package` and `libcnb-data`
2. As a binary (`cargo libcnb package`)

The version of (1) is controlled by `Cargo.toml` / `Cargo.lock` in this repo.

Previously the version of (2) wasn't pinned at all, and instead the latest version
would be used, meaning that version could get out of sync with that of (1).

Now, the version is manually pinned to the same version as in `Cargo.toml`.

Longer term this should either be replaced by deriving the version in the
workflow, or at least having a CI check/lint that ensures the two are in sync.

However, for the short term we want to just fix CNB releases after the 0.14.0
 libcnb release, until we have time to make the necessary changes in #120.
@edmorley edmorley added the bug Something isn't working label Aug 18, 2023
@edmorley edmorley self-assigned this Aug 18, 2023
@edmorley edmorley marked this pull request as ready for review August 18, 2023 18:27
@edmorley edmorley requested a review from a team as a code owner August 18, 2023 18:27
@edmorley edmorley merged commit c1e1e73 into main Aug 18, 2023
@edmorley edmorley deleted the edmorley/pin-libcnb-version branch August 18, 2023 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants