Skip to content

Spam due to lib.warn usages in aliases.nix when running nix search for the first time. #10882

Open
@doronbehar

Description

@doronbehar

Describe the bug

I'm using nixos-unstable, and for the sake of demonstration, I took a nix search that for sure isn't cached for me:

$ nix search github:nixos/nixpkgs/release-24.05 cudatoolkit
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpathHook instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead
* legacyPackages.x86_64-linux.cudaPackages.cudatoolkit (12.2)
  A wrapper substituting the deprecated runfile-based CUDA installation

* legacyPackages.x86_64-linux.cudaPackages.cudatoolkit-legacy-runfile (12.2.2)
  The deprecated runfile-based CUDAToolkit installation (a compiler for NVIDIA GPUs, math libraries, and tools)

* legacyPackages.x86_64-linux.cudaPackages.markForCudatoolkitRootHook

* legacyPackages.x86_64-linux.cudaPackages.saxpy (2023-07-11)
  A simple (Single-precision AX Plus Y) FindCUDAToolkit.cmake example for testing cross-compilation
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpathHook instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead

* legacyPackages.x86_64-linux.cudaPackages_10.cudatoolkit (10.2.89)
  The deprecated runfile-based CUDAToolkit installation (a compiler for NVIDIA GPUs, math libraries, and tools)

* legacyPackages.x86_64-linux.cudaPackages_10.cudatoolkit-legacy-runfile (10.2.89)
  The deprecated runfile-based CUDAToolkit installation (a compiler for NVIDIA GPUs, math libraries, and tools)

* legacyPackages.x86_64-linux.cudaPackages_10.markForCudatoolkitRootHook

* legacyPackages.x86_64-linux.cudaPackages_10.saxpy (2023-07-11)
  A simple (Single-precision AX Plus Y) FindCUDAToolkit.cmake example for testing cross-compilation
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
trace: warning: cudaPackages.autoAddOpenGLRunpathHook is deprecated, use pkgs.autoAddDriverRunpathHook instead
trace: warning: cudaPackages.autoFixElfFiles is deprecated, use pkgs.autoFixElfFiles instead

* legacyPackages.x86_64-linux.cudaPackages_11.cudatoolkit (11.8)
  A wrapper substituting the deprecated runfile-based CUDA installation

* legacyPackages.x86_64-linux.cudaPackages_11.cudatoolkit-legacy-runfile (11.8.0)
  The deprecated runfile-based CUDAToolkit installation (a compiler for NVIDIA GPUs, math libraries, and tools)

* legacyPackages.x86_64-linux.cudaPackages_11.markForCudatoolkitRootHook

* legacyPackages.x86_64-linux.cudaPackages_11.saxpy (2023-07-11)
  A simple (Single-precision AX Plus Y) FindCUDAToolkit.cmake example for testing cross-compilation

* legacyPackages.x86_64-linux.cudatoolkit (12.2)
  A wrapper substituting the deprecated runfile-based CUDA installation

* legacyPackages.x86_64-linux.cudatoolkit_11 (11.8)
  A wrapper substituting the deprecated runfile-based CUDA installation
trace: warning: eww now can build for X11 and wayland simultaneously, so `eww-wayland` is deprecated, use the normal `eww` package instead.
trace: warning: lxd has been renamed to lxd-lts
trace: warning: lxd-unwrapped has been renamed to lxd-unwrapped-lts
trace: warning: nixfmt was renamed to nixfmt-classic. The nixfmt attribute may be used for the new RFC 166-style formatter in the future, which is currently available as nixfmt-rfc-style
trace: warning: nvtop has been renamed to nvtopPackages.full
trace: warning: nvtop-amd has been renamed to nvtopPackages.amd
trace: warning: nvtop-intel has been renamed to nvtopPackages.intel
trace: warning: nvtop-msm has been renamed to nvtopPackages.msm
trace: warning: nvtop-nvidia has been renamed to nvtopPackages.nvidia
trace: warning: writeReferencesToFile is deprecated in favour of writeClosure

This is too noisy.

Steps To Reproduce

  1. nix search a nixpkgs revision that is not cached.
  2. See too many warnings that are not even related to the search word you gave nix.

Expected behavior

No warnings

nix-env --version output

nix-env (Nix) 2.18.2

Additional context

This has bugged me for a while, but now that https://discourse.nixos.org/t/how-to-introduce-a-breaking-version-bump/46746/9 is being discussed, I thought this should be reported.

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugerror-messagesConfusing messages and better diagnosticsnew-cliRelating to the "nix" command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions