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

DevBox breaks Rust from 1.81 and above #2420

Open
pinage404 opened this issue Nov 22, 2024 · 0 comments
Open

DevBox breaks Rust from 1.81 and above #2420

pinage404 opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working triage Issue needs triage

Comments

@pinage404
Copy link
Contributor

pinage404 commented Nov 22, 2024

What happened?

Hello,

I maintain some templates to easily setup projects, they use Direnv and Devbox nor Nix

The Rust template broke when i upgrade from the Rust's channel 1.80.1 to 1.81.0 or above

I also tried with empty devbox.json, the issue happen when using

eval "$(devbox generate direnv --print-envrc)" 

Without Devbox, the PATH contains GCC wrapper 13.3.0 /nix/store/3ix5h74n7ar9950vwzp4dxmil70pmx0k-gcc-wrapper-13.3.0/bin

With Devbox, the PATH GCC wrapper 12.3.0 takes precedence /nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin

--omit-nix-dev seems to just remove the bad GCC wrapper

This seems enougth to be able to use Rust 1.81.0 and abose with Devbox

Steps to reproduce

I did a repository to show this commit by commit

  1. initially, everything works fine with Rust 1.80.1
  2. small refactoring to replace devbox generate direnv --print-envrc (this will be needed in few steps)
  3. upgrading Rust's channel from 1.80.1 to 1.81.0 break compilation
  4. adding --omit-nix-env fix the problem

Command

direnv allow
rm -rf ./target # in order to avoid previous broken cache
cargo test

devbox.json

{
  "packages": [
    "rustup@latest",
    "bacon@latest",
    "mask@latest",
    "bashInteractive@latest",
    "git-gamble@latest"
  ]
}

Devbox version

0.13.6

Nix version

nix (Nix) 2.24.8

What system does this bug occur on?

Linux (x86-64)

Debug logs

No response

@pinage404 pinage404 added bug Something isn't working triage Issue needs triage labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue needs triage
Development

No branches or pull requests

1 participant