axodotdev / axodotdev/cargo-dist

Binaries installed with chocolatey not in path

Open
#1,801 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
2.1k
Forks
149
Avg merge
1d 11h
Merged PRs (30d)
32

Description

I have `nodejs` as a `dist.dependencies.chocolatey` dependency, but during `cargo build` (in `build.rs`) it is not in the path.

I tried various things manually add the install directory of `nodejs` to the `PATH` but I can't seem to get `node` nor `npm` to appear.

Running `refreshenv` (recommended in the logs of `choco`) in the build script also fails.

I've setup a [reproduction repo](https://github.com/oeb25/repro-dist-choco-nodejs) with the [failing release job here](https://github.com/oeb25/repro-dist-choco-nodejs/actions/runs/13949342517/job/39044408090).

Contributor guide

Open the contributing guide

Research direction

Start with build.rs and reproduce the failure using cargo build in the linked reproduction repo, then inspect the linked failing release job. Trace how the dist.dependencies.chocolatey nodejs dependency exposes its binaries; done means node and npm are available on PATH during the build.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.