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

nixpkgs manual: warning: lib.readPathsFromFile is deprecated #116472

Open
davidak opened this issue Mar 15, 2021 · 2 comments · Fixed by #205643
Open

nixpkgs manual: warning: lib.readPathsFromFile is deprecated #116472

davidak opened this issue Mar 15, 2021 · 2 comments · Fixed by #205643
Labels
0.kind: bug Something is broken 6.topic: documentation Meta-discussion about documentation and its workflow

Comments

@davidak
Copy link
Member

davidak commented Mar 15, 2021

Describe the bug

I get this warnings when opening nix-shell for manual:

[davidak@gaming:~/code/nixpkgs/doc]$ nix-shell 
trace: lib.crossLists is deprecated, use lib.cartesianProductOfSets instead
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
trace: warning: lib.readPathsFromFile is deprecated, use a list instead
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
these derivations will be built:
  /nix/store/9zz2jxwyb2abix1fy24hpdkxd3caa92j-epub.xsl.drv
  /nix/store/cd41m3dip3ygi6s2mfv066cc0jzq0x9l-xhtml.xsl.drv
  /nix/store/qcg7k535a5rs3rkf4kzz93rdcvn904s4-locations.xml.drv
  /nix/store/iwvmrda8ypzg6h4wqh90xnivmb1myf9h-nixpkgs-lib-docs.drv
  /nix/store/68v6x94cpnvnbaynch6g7ncwl7647sdv-doc-support.drv
these paths will be fetched (351.53 MiB download, 675.01 MiB unpacked)
...

It still works.

This was first mentioned in #63513 (comment)

Might get fixed by #108063

To Reproduce
Steps to reproduce the behavior:

  1. Follow Contributing to this documentation

Expected behavior
no warnings

Additional context
Add any other context about the problem here.

Notify maintainers

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.11.2, NixOS, 21.05pre274338.102eb68ceec (Okapi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.10
  • channels(root): "home-manager-20.09, nixos-21.05pre274338.102eb68ceec, nixos-hardware, nixos-unstable-21.05pre274338.102eb68ceec"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@davidak davidak added the 0.kind: bug Something is broken label Mar 15, 2021
@stale
Copy link

stale bot commented Sep 14, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 14, 2021
@fricklerhandwerk fricklerhandwerk added the 6.topic: documentation Meta-discussion about documentation and its workflow label Aug 3, 2022
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 3, 2022
@ncfavier
Copy link
Member

The warnings were re-introduced by b3792b4 (cc @infinisil).

I don't know if we should just accept this or extend the libsets with subsets like lib.path.subpath.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: documentation Meta-discussion about documentation and its workflow
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants