1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 15:40:59 +01:00
nix/doc/manual/source/release-notes/rl-2.31.md
2025-08-21 13:37:38 +02:00

4.8 KiB

Release 2.31.0 (2025-08-21)

  • build-cores = 0 now auto-detects CPU cores #13402

    When build-cores is set to 0, nix now automatically detects the number of available CPU cores and passes this value via NIX_BUILD_CORES, instead of passing 0 directly. This matches the behavior when build-cores is unset. This prevents the builder from having to detect the number of cores.

  • Fix Git LFS SSH issues #13337 #13743

    Fixed some outstanding issues with Git LFS and SSH.

    • Added support for NIX_SSHOPTS.
    • Properly use the parsed port from URL.
    • Better use of the response of git-lfs-authenticate to determine API endpoint when the API is not exposed on port 443.
  • Add support for user@address:port syntax in store URIs #7044 #3425

    It's now possible to specify the port used for the SSH stores directly in the store URL in accordance with RFC3986. Previously the only way to specify custom ports was via ssh_config or NIX_SSHOPTS environment variable, because Nix incorrectly passed the port number together with the host name to the SSH executable. This has now been fixed.

    This change affects store references passed via the --store and similar flags in CLI as well as in the configuration for remote builders. For example, the following store URIs now work:

    • ssh://127.0.0.1:2222
    • ssh://[b573:6a48:e224:840b:6007:6275:f8f7:ebf3]:22
    • ssh-ng://[b573:6a48:e224:840b:6007:6275:f8f7:ebf3]:22
  • Represent IPv6 RFC4007 ZoneId literals in conformance with RFC6874 #13445

    Prior versions of Nix since #4646 accepted IPv6 scoped addresses in URIs like store references in the textual representation with a literal percent character: [fe80::1%18]. This was ambiguous, because the the percent literal % is reserved by RFC3986, since it's used to indicate percent encoding. Nix now requires that the percent % symbol is percent-encoded as %25. This implements RFC6874, which defines the representation of zone identifiers in URIs. The example from above now has to be specified as [fe80::1%2518].

Contributors

This release was made possible by the following 34 contributors: