cloudflare / cloudflare/workers-rs
[BUG] hardcoded version of `worker-build` in starter template causing issues with preinstalled versions of wasm-pac
- Dominant language
- Rust
- Stars
- 3.7k
- Forks
- 429
- Avg merge
- 20h 28m
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### What version of `workers-rs` are you using?
0.0.14
### Describe the bug
The worker template has `cargo install worker-build --version 0.0.7`. This hardcoded build command will fail id `wasm-pack` is pre-installed on the system, since `worker-build` 0.0.7 seems to try and force install it on each run
### Steps To Reproduce
_No response_
Contributor guide
Research direction
Start by locating the worker template containing `cargo install worker-build --version 0.0.7` and reproduce the failure with a pre-installed `wasm-pack`. Confirm the template no longer fails because of the hardcoded `worker-build` version, then verify the generated setup command works with the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100