NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.27k stars 1.48k forks source link

copying '«unknown»/' to the store #10959

Open fzakaria opened 3 months ago

fzakaria commented 3 months ago

Describe the bug I am seeing copying '«unknown»/' to the store when I perform a nix build

Steps To Reproduce

Building any file with nix build emits the message: copying '«unknown»/' to the store

{pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-24.05.tar.gz") {} }:
pkgs.writeShellScriptBin "what-is-my-ip" ''
  ${pkgs.curl}/bin/curl -s http://httpbin.org/get | \
    ${pkgs.jq}/bin/jq --raw-output .origin
''
> nix build -f what-is-my-ip.nix
copying '«unknown»/' to the store

Note: The message is eventually overwritten due to the tty rewriting the tool does.

Expected behavior

I expect it to not print unkown

nix-env --version output

> nix-env --version
nix-env (Nix) 2.21.2

Additional context

I'm on MacOS

Priorities

Add :+1: to issues you find important.

roberth commented 3 months ago

This should have improved since 2.22, with

It should now show you what it is copying.

fzakaria commented 3 months ago

Definitely odd it says unknown

I'll try 2.22