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

error: path '«unknown»/tmp' is a symlink on Darwin #190

Open
camelpunch opened this issue Jan 13, 2024 · 2 comments
Open

error: path '«unknown»/tmp' is a symlink on Darwin #190

camelpunch opened this issue Jan 13, 2024 · 2 comments

Comments

@camelpunch
Copy link

A colmena build with flakes will choke on Darwin, because /tmp is a symlink to /private/tmp.

I've created a minimal flake example here.

The following reproduces the error:

nix develop --command -- colmena build
@devusb
Copy link

devusb commented Mar 10, 2024

I just started having this problem -- also with var:

error (ignored): error: end of string reached
error:
       … while fetching the input 'path:/var/folders/z_/ygmnyz_s7ss3zw7qvry5fzhm0000gn/T/colmena-assets-YWlXZ2'

       error: path '«unknown»/var' is a symlink
thread 'main' panicked at src/cli.rs:286:38:
Failed to get flake or hive: ChildFailure { exit_code: 1, backtrace:    0: backtrace::capture::Backtrace::new
   1: colmena::nix::flake::FlakeMetadata::resolve::{{closure}}
   2: colmena::nix::flake::Flake::from_uri::{{closure}}
   3: colmena::cli::run::{{closure}}
   4: tokio::runtime::park::CachedParkThread::block_on
   5: std::panicking::try
   6: colmena::main
   7: std::sys_common::backtrace::__rust_begin_short_backtrace
   8: std::rt::lang_start::{{closure}}
   9: std::panicking::try
  10: std::rt::lang_start_internal
  11: _main
 }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@devusb
Copy link

devusb commented Mar 10, 2024

NixOS/nix#9497 suspect related in some way to this change -- realize it started because I was using nixUnstable which became 2.20 -- when I went back to 2.18 this stopped happening.

srid added a commit to srid/nixos-config that referenced this issue Mar 26, 2024
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

No branches or pull requests

2 participants