Skip to content

Commit 2bd2db3

Browse files
committed
proto 0.29
1 parent c61bb34 commit 2bd2db3

4 files changed

Lines changed: 74 additions & 57 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ jobs:
2626
artifacts: builds/*
2727
artifactErrorsFailBuild: true
2828
body: ${{ steps.build.outputs.changelog-entry }}
29+
makeLatest: true
2930
prerelease: ${{ contains(github.ref_name, '-alpha') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-rc') }}
3031
skipIfReleaseExists: true

Cargo.lock

Lines changed: 66 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zls_plugin"
3-
version = "0.2.1"
3+
version = "0.3.0"
44
edition = "2021"
55
license = "MIT"
66
publish = false
@@ -10,12 +10,12 @@ crate-type = ['cdylib']
1010

1111
[dependencies]
1212
extism-pdk = "1.0.0"
13-
proto_pdk = "0.14.2"
13+
proto_pdk = "0.15.1"
1414
serde = "1.0.195"
1515

1616
[dev-dependencies]
17-
proto_pdk_test_utils = "0.16.1"
18-
starbase_sandbox = "0.1.12"
17+
proto_pdk_test_utils = "0.17.3"
18+
starbase_sandbox = "0.1.13"
1919
tokio = { version = "1.35.1", features = ["full"] }
2020

2121
[features]

src/proto.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn register_tool(_: ()) -> FnResult<Json<ToolMetadataOutput>> {
1919
pub fn download_prebuilt(
2020
Json(input): Json<DownloadPrebuiltInput>,
2121
) -> FnResult<Json<DownloadPrebuiltOutput>> {
22-
let env = get_proto_environment()?;
22+
let env = get_host_environment()?;
2323

2424
check_supported_os_and_arch(
2525
NAME,
@@ -68,13 +68,13 @@ pub fn download_prebuilt(
6868
pub fn locate_executables(
6969
Json(_): Json<LocateExecutablesInput>,
7070
) -> FnResult<Json<LocateExecutablesOutput>> {
71-
let env = get_proto_environment()?;
71+
let env = get_host_environment()?;
7272

7373
Ok(Json(LocateExecutablesOutput {
7474
primary: Some(ExecutableConfig::new(
7575
// proto renames the executable to the tool id.
7676
// https://github.com/moonrepo/proto/blob/0441fba931060122b55dd972573e126e607b306e/crates/core/src/tool.rs#L933
77-
env.os.get_file_name(get_tool_id()?, "exe"),
77+
env.os.get_file_name(get_plugin_id()?, "exe"),
7878
)),
7979
..LocateExecutablesOutput::default()
8080
}))

0 commit comments

Comments
 (0)