nix icon indicating copy to clipboard operation
nix copied to clipboard

copying '«unknown»/' to the store

Open fzakaria opened this issue 1 year ago • 2 comments

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.

fzakaria avatar Jun 25 '24 22:06 fzakaria

This should have improved since 2.22, with

  • https://github.com/NixOS/nix/pull/10517.

It should now show you what it is copying.

roberth avatar Jun 26 '24 03:06 roberth

Definitely odd it says unknown

I'll try 2.22

fzakaria avatar Jun 26 '24 15:06 fzakaria

Fixed in recent versions.

tomberek avatar Jul 09 '25 20:07 tomberek