19 Commits

Author SHA1 Message Date
Vladimír Čunát
ea42261b90 nixpkgs/release-checks: fix url-literal warns after Nix upgrade
https://hydra.nixos.org/build/326503233/nixlog/2/tail
2026-04-14 14:19:13 +02:00
Emily
4a20fb1916 top-level: add warning for x86_64-darwin deprecation
We’ve never deprecated a platform in widespread use before, and it
seems prudent to warn users about the upcoming end of support so they
can plan appropriately.

I tried to make this relatively unobtrusive by taking advantage of
the import cache and offering a way to turn it off, but I anticipate
there might still be issues with e.g. `nix shell nixpkgs#…` and
spammy warnings from multiple instantiations of Nixpkgs. I’m
not sure there’s much we can do about that unless we take a
different strategy entirely; `nix shell --impure nixpkgs#…` with a
`~/.config/nixpkgs/config.nix` is about the best UX we can hope to
offer with the restrictions of flakes.
2026-02-27 22:27:02 +00:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
K900
832fe14732 nixpkgs/release-checks: shut up GC 2024-07-31 10:02:18 +03:00
K900
bcba08a286 nixpkgs/release-checks: remove debug print 2024-07-31 10:02:12 +03:00
K900
2327299ec4 nixpkgs/release-checks: actually log the warnings 2024-07-31 10:01:56 +03:00
Jade Lovelace
9dfc63b201 release-checks: Remove workaround for 10 year old Nix bug
This bug has been fixed 10 years ago, and the release checks seem to
build on my x86_64-linux machine without exploding.

https://github.com/NixOS/nix/pull/425
https://github.com/NixOS/nixpkgs/issues/5494
2024-05-29 02:46:06 -07:00
K900
9cdada6d5c pkgs/top-level: split release-checks into a separate job
This should improve latency on channel updates.
2024-04-17 09:53:10 +03:00
K900
cc2a3d3904 release-checks: remove unnecessary escape 2024-01-12 10:28:42 +03:00
Vladimír Čunát
e471f6963f tarball job: tag both derivations as big-parallel
The aim here is to avoid exhausting RAM of our normal machines
on hydra.nixos.org.  See #227945 for details.
2023-04-30 15:26:22 +02:00
Artturin
fe1c7a1945 treewide: remove usages of header and stopNest
they're obsolete
2023-01-16 00:08:12 +02:00
Andrew Childs
cb730cf239 nixpkgs-basic-release-checks: check for case-insensitive path conflicts 2022-07-04 18:30:36 +09:00
milahu
3f323d74d6 nixpkgs-basic-release-checks.nix: print errors 2022-02-05 14:32:54 +01:00
Eelco Dolstra
cb2f8a87d5 Check that nix-env output doesn't depend on the Nixpkgs location 2022-01-24 20:12:18 +01:00
Robert Hensing
625feda5da nixpkgs-basic-release-checks: Print trace on lib.warn 2022-01-10 12:43:04 +01:00
Dominik Xaver Hörl
16f44b24f8 nixpkgs-basic-release-checks: check for use of url literals
Nixpkgs should not rely on that deprecated feature.
2021-11-10 15:47:18 +01:00
Bernardo Meurer
ca5ecbed4b nixpkgs-basic-release-checks: set NIX_STORE_DIR
With nix 2.4 the fact that we set NIX_STATE_DIR, but kept the original
store became a hard error. We work around it here by forcing the use of
a fresh, sandbox-local, store.

See regnat's wonderful analysis for more information:
https://github.com/NixOS/nix/issues/5495#issuecomment-963949707
2021-11-09 10:55:06 -08:00
Robert Hensing
d6aafb3be9 nixpkgs-basic-release-checks: Check without aliases
This allows the aliases file to produce deprecation warnings
without triggering the check against warnings. This allows
for a better user experience when deprecations occur.

Moreover, Nixpkgs itself shouldn't rely on its backcompat aliases.
2021-08-15 17:52:55 +02:00
Domen Kožar
7904fffeef GHA: add basic eval checks 2021-07-07 14:26:59 +02:00