Skip to content

build: use CARGO environment variable if set#62421

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
richardlau:cargo
Apr 1, 2026
Merged

build: use CARGO environment variable if set#62421
nodejs-github-bot merged 1 commit intonodejs:mainfrom
richardlau:cargo

Conversation

@richardlau
Copy link
Copy Markdown
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.

@nodejs-github-bot
Copy link
Copy Markdown
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
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 25, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator

@richardlau
Copy link
Copy Markdown
Member Author

(rebased to see if that makes the Windows flakes go away)

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/72359/

@targos targos added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 1, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 1, 2026
@nodejs-github-bot nodejs-github-bot merged commit 7b8934d into nodejs:main Apr 1, 2026
60 checks passed
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Landed in 7b8934d

@richardlau richardlau added dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. dont-land-on-v25.x PRs that should not land on the v25.x-staging branch and should not be released in v25.x. labels Apr 1, 2026
@richardlau richardlau deleted the cargo branch April 1, 2026 12:32
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. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. dont-land-on-v25.x PRs that should not land on the v25.x-staging branch and should not be released in v25.x. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants