Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
deps: Audit 06/25 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj authored Jun 25, 2024
1 parent 372a224 commit 7a77739
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 53 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.11.3

#### 🚀 Updates

- Updated dependencies.

## 0.11.2

#### 🚀 Updates
Expand Down
95 changes: 49 additions & 46 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "go_plugin"
version = "0.11.2"
version = "0.11.3"
edition = "2021"
license = "MIT"
publish = false
Expand All @@ -10,12 +10,12 @@ crate-type = ['cdylib']

[dependencies]
extism-pdk = { version = "1.2.0" }
proto_pdk = { version = "0.20.0" } #, path = "../../proto/crates/pdk" }
proto_pdk = { version = "0.21.0" } #, path = "../../proto/crates/pdk" }
serde = "1.0.203"

[dev-dependencies]
proto_pdk_test_utils = { version = "0.24.0" } #, path = "../../proto/crates/pdk-test-utils" }
starbase_sandbox = "0.6.1"
proto_pdk_test_utils = { version = "0.25.0" } #, path = "../../proto/crates/pdk-test-utils" }
starbase_sandbox = "0.6.2"
tokio = { version = "1.38.0", features = ["full"] }

[features]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
profile = "default"
channel = "1.78.0"
channel = "1.79.0"
4 changes: 3 additions & 1 deletion src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ pub fn to_go_version(spec: &VersionSpec) -> String {
match spec {
VersionSpec::Canary => "canary".into(),
VersionSpec::Alias(alias) => alias.into(),
VersionSpec::Version(version) => {
_ => {
let version = spec.as_version().unwrap();

// Versioning changed in >= 1.21.0
// https://go.dev/doc/go1.21#introduction
if version.major >= 1 && version.minor >= 21 {
Expand Down
2 changes: 1 addition & 1 deletion tests/versions_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ generate_resolve_versions_tests!("go-test", {
"1.11" => "1.11.13",
"1.9.0-rc2" => "1.9.0-rc2",
"1.21.0" => "1.21.0",
"1.21" => "1.21.10",
"1.21" => "1.21.11",
});

#[test]
Expand Down

0 comments on commit 7a77739

Please sign in to comment.