Skip to content

Commit

Permalink
Bump thiserror from 1.0.66 to 2.0.6 (#368)
Browse files Browse the repository at this point in the history
* Bump thiserror from 1.0.66 to 2.0.6

Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.66 to 2.0.6.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@1.0.66...2.0.6)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix thiserror breaking change

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Schneems <[email protected]>
  • Loading branch information
dependabot[bot] and schneems authored Dec 13, 2024
1 parent d2fd043 commit 12b122b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 33 deletions.
38 changes: 9 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion buildpacks/ruby/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ regex = "1"
serde = "1"
tar = { version = "0.4", default-features = false }
tempfile = "3"
thiserror = "1"
thiserror = "2"
ureq = { version = "2", default-features = false, features = ["tls"] }
url = "2"
magic_migrate = "0.2"
Expand Down
4 changes: 2 additions & 2 deletions buildpacks/ruby/src/target_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const DISTRO_VERSION_STACK: &[(&str, &str, &str)] = &[

#[derive(Debug, thiserror::Error)]
pub(crate) enum TargetIdError {
#[error("Distro name and version '{0}-{1}' is not supported. Must be one of: {}", DISTRO_VERSION_STACK.iter().map(|&(name, version, _)| format!("'{name}-{version}'")).collect::<Vec<_>>().join(", "))]
#[error("Distro name and version '{0}-{1}' is not supported. Must be one of: {options}", options = DISTRO_VERSION_STACK.iter().map(|&(name, version, _)| format!("'{name}-{version}'")).collect::<Vec<_>>().join(", "))]
UnknownDistroNameVersionCombo(String, String),

#[error("Cannot convert stack name '{0}' into a target OS. Must be one of: {}", DISTRO_VERSION_STACK.iter().map(|&(_, _, stack)| format!("'{stack}'")).collect::<Vec<_>>().join(", "))]
#[error("Cannot convert stack name '{0}' into a target OS. Must be one of: {options}", options = DISTRO_VERSION_STACK.iter().map(|&(_, _, stack)| format!("'{stack}'")).collect::<Vec<_>>().join(", "))]
UnknownStack(String),
}

Expand Down
2 changes: 1 addition & 1 deletion commons/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ regex = "1"
serde = "1"
sha2 = "0.10"
tempfile = "3"
thiserror = "1"
thiserror = "2"
walkdir = "2"
filetime = "0.2"

Expand Down

0 comments on commit 12b122b

Please sign in to comment.