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 libcnb from 0.11.1 to 0.11.2 #407

Merged
merged 3 commits into from
Jan 2, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 1, 2023

Bumps libcnb from 0.11.1 to 0.11.2.

Changelog

Sourced from libcnb's changelog.

[0.11.2] 2022-12-15

Fixed

  • libcnb-test: TestContext::download_sbom_files now checks the exit code of the pack sbom download command it runs. (#520)

Changed

  • libcnb: Drop the use of the stacker crate when recursively removing layer directories. (#517)
  • libcnb-cargo: Updated to Clap v4. (#511)

Added

  • libherokubuildpack: Add command and write modules for working with std::process::Command output streams. (#535)
Commits
  • 47daf61 Prepare 0.11.2 release (#538)
  • 2c9c642 Add CommandExt for working with std::process::Command output streams (#535)
  • 39edef1 Fix Clippy errors with Rust 1.66/1.67 (#537)
  • dadd5b5 Bump Swatinem/rust-cache from 2.1.0 to 2.2.0 (#530)
  • 55d9ab9 Bump Swatinem/rust-cache from 2.0.2 to 2.1.0 (#528)
  • 637ebf9 Bump buildpacks/github-actions from 4.8.1 to 4.9.0 (#527)
  • fdff10a Bump Swatinem/rust-cache from 2.0.1 to 2.0.2 (#525)
  • 484a1f4 Update cyclonedx-bom requirement from 0.3.5 to 0.4.0 (#524)
  • c2b931f Always use Self when referring to self (#518)
  • 60b95a0 libcnb-test: Check the exit code of pack sbom download (#520)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [libcnb](https://github.com/heroku/libcnb.rs) from 0.11.1 to 0.11.2.
- [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.11.1...v0.11.2)

---
updated-dependencies:
- dependency-name: libcnb
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner January 1, 2023 10:12
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jan 1, 2023
Fixes:

```
warning: variables can be used directly in the `format!` string
  --> buildpacks/jvm/src/errors.rs:36:13
   |
36 |             format!("Unsupported distribution: {}", distribution),
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
  --> buildpacks/jvm/src/main.rs:3:9
   |
3  | #![warn(clippy::pedantic)]
   |         ^^^^^^^^^^^^^^^^
   = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
help: change this to
   |
36 -             format!("Unsupported distribution: {}", distribution),
36 +             format!("Unsupported distribution: {distribution}"),
   |

warning: the borrowed expression implements the required traits
  --> buildpacks/jvm/src/layers/openjdk.rs:79:17
   |
79 |                 &absolute_jdk_cacerts_path.with_extension("old"),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `absolute_jdk_cacerts_path.with_extension("old")`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

warning: variables can be used directly in the `format!` string
  --> buildpacks/jvm/src/bin/heroku_dynamic_jvm_opts.rs:27:9
   |
27 |         format!("{}{}", prefix, suffix),
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
  --> buildpacks/jvm/src/bin/heroku_dynamic_jvm_opts.rs:3:9
   |
3  | #![warn(clippy::pedantic)]
   |         ^^^^^^^^^^^^^^^^
   = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
help: change this to
   |
27 -         format!("{}{}", prefix, suffix),
27 +         format!("{prefix}{suffix}"),
   |

warning: variables can be used directly in the `format!` string
  --> buildpacks/jvm/src/bin/heroku_metrics_agent_setup.rs:33:22
   |
33 |         let prefix = format!("-javaagent:{}", heroku_metrics_agent_path);
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
  --> buildpacks/jvm/src/bin/heroku_metrics_agent_setup.rs:3:9
   |
3  | #![warn(clippy::pedantic)]
   |         ^^^^^^^^^^^^^^^^
   = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
help: change this to
   |
33 -         let prefix = format!("-javaagent:{}", heroku_metrics_agent_path);
33 +         let prefix = format!("-javaagent:{heroku_metrics_agent_path}");
   |

warning: variables can be used directly in the `format!` string
  --> buildpacks/jvm/src/bin/heroku_metrics_agent_setup.rs:42:13
   |
42 |             format!("{}{}", prefix, suffix),
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
   |
42 -             format!("{}{}", prefix, suffix),
42 +             format!("{prefix}{suffix}"),
   |

warning: `heroku-openjdk` (bin "heroku-openjdk") generated 2 warnings
warning: `heroku-openjdk` (bin "heroku_dynamic_jvm_opts") generated 1 warning
warning: `heroku-openjdk` (bin "heroku_metrics_agent_setup") generated 2 warnings
warning: the borrowed expression implements the required traits
  --> buildpacks/maven/src/mode.rs:50:28
   |
50 |                 File::open(&system_properties_path)
   |                            ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `system_properties_path`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

warning: the borrowed expression implements the required traits
   --> buildpacks/maven/src/main.rs:121:37
    |
121 |                 fs::set_permissions(&maven_wrapper_path, Permissions::from_mode(0o777))
    |                                     ^^^^^^^^^^^^^^^^^^^ help: change this to: `maven_wrapper_path`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

warning: variables can be used directly in the `format!` string
   --> buildpacks/jvm/src/bin/heroku_database_env_var_rewrite.rs:126:13
    |
126 |             format!("jdbc:{}", url),
    |             ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
note: the lint level is defined here
   --> buildpacks/jvm/src/bin/heroku_database_env_var_rewrite.rs:3:9
    |
3   | #![warn(clippy::pedantic)]
    |         ^^^^^^^^^^^^^^^^
    = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]`
help: change this to
    |
126 -             format!("jdbc:{}", url),
126 +             format!("jdbc:{url}"),
    |

warning: the borrowed expression implements the required traits
  --> buildpacks/jvm-function-invoker/src/layers/bundle.rs:90:63
   |
90 |     let bundle_toml_contents: FunctionBundle = read_toml_file(&bundle_toml_path)
   |                                                               ^^^^^^^^^^^^^^^^^ help: change this to: `bundle_toml_path`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

warning: `maven` (bin "maven") generated 2 warnings
warning: `heroku-openjdk` (bin "heroku_database_env_var_rewrite") generated 1 warning
warning: `jvm-function-invoker-buildpack` (bin "jvm-function-invoker-buildpack") generated 1 warning
warning: `jvm-function-invoker-buildpack` (bin "jvm-function-invoker-buildpack" test) generated 1 warning (1 duplicate)
warning: variables can be used directly in the `format!` string
  --> buildpacks/jvm/src/bin/heroku_metrics_agent_setup.rs:67:19
   |
67 |             Some(&format!("-javaagent:{} {}", AGENT_PATH, JAVA_TOOL_OPTIONS))
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
   |
67 -             Some(&format!("-javaagent:{} {}", AGENT_PATH, JAVA_TOOL_OPTIONS))
67 +             Some(&format!("-javaagent:{AGENT_PATH} {JAVA_TOOL_OPTIONS}"))
   |

warning: variables can be used directly in the `format!` string
  --> buildpacks/jvm/src/bin/heroku_metrics_agent_setup.rs:82:19
   |
82 |             Some(&format!("-javaagent:{}", AGENT_PATH))
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
   |
82 -             Some(&format!("-javaagent:{}", AGENT_PATH))
82 +             Some(&format!("-javaagent:{AGENT_PATH}"))
   |

warning: `heroku-openjdk` (bin "heroku_metrics_agent_setup" test) generated 4 warnings (2 duplicates)
warning: `heroku-openjdk` (bin "heroku_database_env_var_rewrite" test) generated 1 warning (1 duplicate)
warning: `maven` (bin "maven" test) generated 2 warnings (2 duplicates)
warning: `heroku-openjdk` (bin "heroku-openjdk" test) generated 2 warnings (2 duplicates)
warning: `heroku-openjdk` (bin "heroku_dynamic_jvm_opts" test) generated 1 warning (1 duplicate)
```
Since that's the latest, and is what is used in CI.
@edmorley edmorley enabled auto-merge (rebase) January 2, 2023 21:09
@edmorley edmorley merged commit 24b0843 into main Jan 2, 2023
@edmorley edmorley deleted the dependabot/cargo/libcnb-0.11.2 branch January 2, 2023 21:13
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.

1 participant