Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix finding cargo on NixOS #192

Merged
merged 1 commit into from
Jul 23, 2022
Merged

Fix finding cargo on NixOS #192

merged 1 commit into from
Jul 23, 2022

Conversation

jschwe
Copy link
Collaborator

@jschwe jschwe commented Jul 23, 2022

cargo on NixOS is not next to rustc, so it was previously not found.
To address this, we search for cargo in the regular way via
find_program, if the toolchain is not managed by rustup.

Closes #145

cargo on NixOS is not next to `rustc`, so it was previously not found.
To address this, we search for cargo in the regular way via
`find_program`, if the toolchain is not managed by rustup.

Closes corrosion-rs#145
@jschwe jschwe merged commit d5330b3 into corrosion-rs:master Jul 23, 2022
@jschwe jschwe deleted the 145 branch July 23, 2022 10:25
jonringer-comm pushed a commit to CommE2E/comm that referenced this pull request Aug 24, 2022
Summary:
Having `rustc` on PATH makes corrosion assume
that it will be able to find `cargo` at the same
directory. This isn't true for nix.

The fix has been upstreamed to corrosion in
corrosion-rs/corrosion#192
but there hasn't been a release since then.

Apply patch until a new release has been cut.

Depends on D4872

Test Plan:
```
nix develop
cd services/tunnelbroker
rm -rf build && mkdir -p build && cd build && cmake .. && make -j
```

Reviewers: max, atul, O1 Nix, varun, abosh

Reviewed By: O1 Nix, varun

Subscribers: ashoat, tomek, abosh

Differential Revision: https://phab.comm.dev/D4928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not find Rust_CARGO_CACHED using the following names: cargo
2 participants