Commit f9fbdab
committed
fix: correct archive prefix for download toolchain strategy
Fix toolchain download failures by using correct archive prefix that
includes the platform suffix. The archives have structure like:
wasm-tools-1.235.0-aarch64-macos/...
But we were using stripPrefix "wasm-tools-1.235.0" which doesn't match.
Changes:
- Update stripPrefix for wasm-tools to include platform suffix
- Update stripPrefix for wac to include platform suffix
- Update stripPrefix for wit-bindgen to include platform suffix
Example fix for macOS ARM64:
Before: stripPrefix = "wasm-tools-1.235.0"
After: stripPrefix = "wasm-tools-1.235.0-aarch64-macos"
This resolves download extraction errors when using the download
toolchain strategy instead of system tools.1 parent c3edb61 commit f9fbdab
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | | - | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
129 | | - | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
0 commit comments