Skip to content

build: use CARGO environment variable if set#62421

Open
richardlau wants to merge 1 commit intonodejs:mainfrom
richardlau:cargo
Open

build: use CARGO environment variable if set#62421
richardlau wants to merge 1 commit intonodejs:mainfrom
richardlau:cargo

Conversation

@richardlau
Copy link
Member

When enabling support for Temporal, check for the CARGO environment variable to locate the cargo binary (defaulting to cargo if not set) and use this to build deps/crates.

This will allow using Cargo on systems where the Cargo binary name is suffixed with the version, e.g. cargo-1.82 on Ubuntu 24.04.

When enabling support for Temporal, check for the `CARGO` environment
variable to locate the `cargo` binary (defaulting to `cargo` if not
set) and use this to build `deps/crates`.

This will allow using Cargo on systems where the Cargo binary name is
suffixed with the version, e.g. `cargo-1.82` on Ubuntu 24.04.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Mar 24, 2026
@addaleax addaleax added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. request-ci Add this label to start a Jenkins CI on a PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants