Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reliance on environment variables breaks hermetic builds #1049

Open
nickpdemarco opened this issue Jan 24, 2025 · 1 comment
Open

Reliance on environment variables breaks hermetic builds #1049

nickpdemarco opened this issue Jan 24, 2025 · 1 comment

Comments

@nickpdemarco
Copy link

While executing cargo metadata, and perhaps elsewhere, cbindgen invokes the binary specified CARGO environment variable, else an unadorned cargo.

Our build system does not permit reliance on environment variables, and that prevents us from using cbindgen. I'd like to be able to specify --cargo-bin as an argument to cbindgen, and use the following priorities for selecting cargo.

  1. --cargo-bin, if specified.
  2. CARGO environment variable, if set.
  3. cargo, otherwise.
@emilio
Copy link
Collaborator

emilio commented Jan 24, 2025

Would happily take a patch for that :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants