HomePhabricator
Diffusion Comm 44de57ee0398

[Nix] Fix corrosion logic when rustc is on PATH

Description

[Nix] Fix corrosion logic when rustc is on PATH

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
https://github.com/corrosion-rs/corrosion/pull/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

Details

Provenance
jonAuthored on Aug 23 2022, 12:15 PM
Reviewer
Restricted Owners Package
Differential Revision
D4928: [Nix] Fix corrosion logic when rustc is on PATH
Parents
rCOMMe9a808cc752c: [Nix] Reduce services noise when doing nix develop
Branches
Unknown
Tags
Unknown