1
- use proto_pdk:: * ;
2
- use proto_pdk_test_utils:: { create_plugin, generate_download_install_tests} ;
1
+ use proto_pdk_test_utils:: * ;
3
2
use starbase_sandbox:: create_empty_sandbox;
4
3
use std:: path:: PathBuf ;
5
4
@@ -22,7 +21,6 @@ fn supports_linux_arm64() {
22
21
} ) ,
23
22
DownloadPrebuiltOutput {
24
23
archive_prefix: Some ( "bun-linux-aarch64" . into( ) ) ,
25
- bin_path: None ,
26
24
checksum_name: None ,
27
25
checksum_url: Some (
28
26
"https://github.com/oven-sh/bun/releases/download/bun-v1.2.0/SHASUMS256.txt" . into( )
@@ -51,7 +49,6 @@ fn supports_linux_x64() {
51
49
} ) ,
52
50
DownloadPrebuiltOutput {
53
51
archive_prefix: Some ( "bun-linux-x64" . into( ) ) ,
54
- bin_path: None ,
55
52
checksum_name: None ,
56
53
checksum_url: Some (
57
54
"https://github.com/oven-sh/bun/releases/download/bun-v1.2.0/SHASUMS256.txt" . into( )
@@ -80,7 +77,6 @@ fn supports_macos_arm64() {
80
77
} ) ,
81
78
DownloadPrebuiltOutput {
82
79
archive_prefix: Some ( "bun-darwin-aarch64" . into( ) ) ,
83
- bin_path: None ,
84
80
checksum_name: None ,
85
81
checksum_url: Some (
86
82
"https://github.com/oven-sh/bun/releases/download/bun-v1.2.0/SHASUMS256.txt" . into( )
@@ -109,7 +105,6 @@ fn supports_macos_x64() {
109
105
} ) ,
110
106
DownloadPrebuiltOutput {
111
107
archive_prefix: Some ( "bun-darwin-x64" . into( ) ) ,
112
- bin_path: None ,
113
108
checksum_name: None ,
114
109
checksum_url: Some (
115
110
"https://github.com/oven-sh/bun/releases/download/bun-v1.2.0/SHASUMS256.txt" . into( )
@@ -123,7 +118,7 @@ fn supports_macos_x64() {
123
118
}
124
119
125
120
#[ test]
126
- #[ should_panic( expected = "Unable to install Bun, unsupported OS windows. " ) ]
121
+ #[ should_panic( expected = "Unable to install Bun" ) ]
127
122
fn doesnt_support_windows ( ) {
128
123
let sandbox = create_empty_sandbox ( ) ;
129
124
let plugin = create_plugin ( "bun-test" , sandbox. path ( ) ) ;
@@ -152,6 +147,7 @@ fn locates_unix_bin() {
152
147
version: "1.2.0" . into( ) ,
153
148
..Default :: default ( )
154
149
} ,
150
+ home_dir: PathBuf :: new( ) ,
155
151
tool_dir: PathBuf :: new( )
156
152
} )
157
153
. bin_path,
@@ -173,6 +169,7 @@ fn locates_windows_bin() {
173
169
version: "1.2.0" . into( ) ,
174
170
..Default :: default ( )
175
171
} ,
172
+ home_dir: PathBuf :: new( ) ,
176
173
tool_dir: PathBuf :: new( )
177
174
} )
178
175
. bin_path,
0 commit comments