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

Bump the libcnb group with 2 updates #120

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 18, 2023

Bumps the libcnb group with 2 updates: libcnb-data and libcnb-package.

Updates libcnb-data from 0.13.0 to 0.14.0

Changelog

Sourced from libcnb-data's changelog.

[0.14.0] - 2023-08-18

Added

  • libcnb-package: Added cross-compilation assistance for Linux aarch64-unknown-linux-musl. (#577)
  • libcnb-cargo: Added --package-dir command line option to control where packaged buildpacks are written. (#583)
  • libcnb-test:
    • LogOutput now implements std::fmt::Display. (#635)
    • ContainerConfig now implements Clone. (#636)

Changed

  • libcnb-cargo: Moved the default location for packaged buildpacks from Cargo's target/ directory to packaged/ in the Cargo workspace root. This simplifies the path and stops modification of the target/ directory which previously might have caching implications when other tools didn't expect non-Cargo output in that directory. Users that implicitly rely on the output directory need to adapt. The output of cargo libcnb package will refer to the new locations. (#583)
  • libcnb-package:
    • buildpack target directory now contains the target triple. Users that implicitly rely on the output directory need to adapt. The output of cargo libcnb package will refer to the new locations. (#580)
    • get_buildpack_target_dir was renamed to get_buildpack_package_dir (#583)
  • libcnb-test:
    • ContainerContext::address_for_port will now panic for all failure modes rather than just some, and so now returns SocketAddr directly instead of Option<SocketAddr>. This reduces test boilerplate due to the caller no longer needing to .unwrap() and improves debugging UX when containers crash after startup. (#605 and #636)
    • Docker commands are now run using the Docker CLI instead of Bollard and the Docker daemon API. (#620)
    • ContainerConfig::entrypoint now accepts a String rather than a vector of strings. Any arguments to the entrypoint should be moved to ContainerConfig::command. (#620)
    • Removed TestRunner::new since its only purpose was for advanced configuration that's no longer applicable. Use TestRunner::default instead. (#620)
    • Removed stdout_raw and stderr_raw from LogOutput. (#607)
    • Improved wording of panic error messages. (#619 and #620)
  • libherokubuildpack: Changed the flate2 decompression backend from miniz_oxide to zlib. (#593)

Fixed

  • libcnb-test:
    • TestContext::run_shell_command and ContainerContext::shell_exec now validate the exit code of the spawned commands and panic if they are non-zero. (#620)
    • ContainerContext::expose_port now only exposes the port to localhost. (#610)
    • If a test with an expected result of PackResult::Failure unexpectedly succeeds, the built app image is now correctly cleaned up. (#625)
Commits
  • b700ea0 Prepare release v0.14.0 (#646)
  • 2b935db Pin intra-libcnb* crate dependencies to exact versions (#644)
  • cce17cf Rename libcnb-cargo integration test file (#645)
  • 1db3a09 Add version links in the changelog (#643)
  • f892818 Update Quick Start Guide (#640)
  • 4644deb Run cargo upgrade as part of preparing libcnb releases (#641)
  • ec90a43 Move packaged buildpack directory out of target/ (#583)
  • e3a3da8 Refactor libcnb-cargo integration tests (#637)
  • e99e3aa libcnb-test: Improve error messages for address_for_port (#636)
  • 74708c6 libcnb-test: Implement fmt::Display for LogOutput (#635)
  • Additional commits viewable in compare view

Updates libcnb-package from 0.13.0 to 0.14.0

Changelog

Sourced from libcnb-package's changelog.

[0.14.0] - 2023-08-18

Added

  • libcnb-package: Added cross-compilation assistance for Linux aarch64-unknown-linux-musl. (#577)
  • libcnb-cargo: Added --package-dir command line option to control where packaged buildpacks are written. (#583)
  • libcnb-test:
    • LogOutput now implements std::fmt::Display. (#635)
    • ContainerConfig now implements Clone. (#636)

Changed

  • libcnb-cargo: Moved the default location for packaged buildpacks from Cargo's target/ directory to packaged/ in the Cargo workspace root. This simplifies the path and stops modification of the target/ directory which previously might have caching implications when other tools didn't expect non-Cargo output in that directory. Users that implicitly rely on the output directory need to adapt. The output of cargo libcnb package will refer to the new locations. (#583)
  • libcnb-package:
    • buildpack target directory now contains the target triple. Users that implicitly rely on the output directory need to adapt. The output of cargo libcnb package will refer to the new locations. (#580)
    • get_buildpack_target_dir was renamed to get_buildpack_package_dir (#583)
  • libcnb-test:
    • ContainerContext::address_for_port will now panic for all failure modes rather than just some, and so now returns SocketAddr directly instead of Option<SocketAddr>. This reduces test boilerplate due to the caller no longer needing to .unwrap() and improves debugging UX when containers crash after startup. (#605 and #636)
    • Docker commands are now run using the Docker CLI instead of Bollard and the Docker daemon API. (#620)
    • ContainerConfig::entrypoint now accepts a String rather than a vector of strings. Any arguments to the entrypoint should be moved to ContainerConfig::command. (#620)
    • Removed TestRunner::new since its only purpose was for advanced configuration that's no longer applicable. Use TestRunner::default instead. (#620)
    • Removed stdout_raw and stderr_raw from LogOutput. (#607)
    • Improved wording of panic error messages. (#619 and #620)
  • libherokubuildpack: Changed the flate2 decompression backend from miniz_oxide to zlib. (#593)

Fixed

  • libcnb-test:
    • TestContext::run_shell_command and ContainerContext::shell_exec now validate the exit code of the spawned commands and panic if they are non-zero. (#620)
    • ContainerContext::expose_port now only exposes the port to localhost. (#610)
    • If a test with an expected result of PackResult::Failure unexpectedly succeeds, the built app image is now correctly cleaned up. (#625)
Commits
  • b700ea0 Prepare release v0.14.0 (#646)
  • 2b935db Pin intra-libcnb* crate dependencies to exact versions (#644)
  • cce17cf Rename libcnb-cargo integration test file (#645)
  • 1db3a09 Add version links in the changelog (#643)
  • f892818 Update Quick Start Guide (#640)
  • 4644deb Run cargo upgrade as part of preparing libcnb releases (#641)
  • ec90a43 Move packaged buildpack directory out of target/ (#583)
  • e3a3da8 Refactor libcnb-cargo integration tests (#637)
  • e99e3aa libcnb-test: Improve error messages for address_for_port (#636)
  • 74708c6 libcnb-test: Implement fmt::Display for LogOutput (#635)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> dependency will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> dependency will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

@dependabot dependabot bot requested a review from a team as a code owner August 18, 2023 16:46
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Aug 18, 2023
@dependabot dependabot bot force-pushed the dependabot/cargo/libcnb-3408c4c860 branch from 13ceb4a to bdf503c Compare August 18, 2023 16:50
@edmorley
Copy link
Member

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/cargo/libcnb-3408c4c860 branch from bdf503c to 2cb8233 Compare August 18, 2023 16:55
edmorley added a commit that referenced this pull request Aug 18, 2023
#124)

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.
@dependabot dependabot bot force-pushed the dependabot/cargo/libcnb-3408c4c860 branch from 2cb8233 to 72368de Compare August 18, 2023 20:23
@edmorley
Copy link
Member

This PR needs:

Bumps the libcnb group with 2 updates: [libcnb-data](https://github.com/heroku/libcnb.rs) and [libcnb-package](https://github.com/heroku/libcnb.rs).


Updates `libcnb-data` from 0.13.0 to 0.14.0
- [Release notes](https://github.com/heroku/libcnb.rs/releases)
- [Changelog](https://github.com/heroku/libcnb.rs/blob/main/CHANGELOG.md)
- [Commits](heroku/libcnb.rs@v0.13.0...v0.14.0)

Updates `libcnb-package` from 0.13.0 to 0.14.0
- [Release notes](https://github.com/heroku/libcnb.rs/releases)
- [Changelog](https://github.com/heroku/libcnb.rs/blob/main/CHANGELOG.md)
- [Commits](heroku/libcnb.rs@v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: libcnb-data
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: libcnb
- dependency-name: libcnb-package
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: libcnb
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/libcnb-3408c4c860 branch from 3c19086 to 678fd8f Compare September 12, 2023 14:39
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 1, 2023

Superseded by #148.

@dependabot dependabot bot closed this Oct 1, 2023
@dependabot dependabot bot deleted the dependabot/cargo/libcnb-3408c4c860 branch October 1, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unpin version of libcnb and adapt to new changes
1 participant