Skip to content

Commit 4edd560

Browse files
authored
Merge pull request #12907 from NixOS/revert-nixpkgs-unstable
Revert to Nixpkgs 24.11 [2.28]
2 parents ddfb268 + f48a72a commit 4edd560

File tree

14 files changed

+31
-33
lines changed

14 files changed

+31
-33
lines changed

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
description = "The purely functional package manager";
33

4-
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
55

66
inputs.nixpkgs-regression.url = "github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2";
77
inputs.nixpkgs-23-11.url = "github:NixOS/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446";

src/libfetchers/git-lfs-fetch.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ static void downloadToSink(
4444

4545
static std::string getLfsApiToken(const ParsedURL & url)
4646
{
47-
auto [status, output] = runProgram(
48-
RunOptions{
49-
.program = "ssh",
50-
.args = {*url.authority, "git-lfs-authenticate", url.path, "download"},
51-
});
47+
auto [status, output] = runProgram(RunOptions{
48+
.program = "ssh",
49+
.args = {*url.authority, "git-lfs-authenticate", url.path, "download"},
50+
});
5251

5352
if (output.empty())
5453
throw Error(

src/libstore-test-support/outputs-spec.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ Gen<OutputsSpec> Arbitrary<OutputsSpec>::arbitrary()
1414
return gen::just((OutputsSpec) OutputsSpec::All{});
1515
case 1:
1616
return gen::map(
17-
gen::nonEmpty(
18-
gen::container<StringSet>(
19-
gen::map(gen::arbitrary<StorePathName>(), [](StorePathName n) { return n.name; }))),
17+
gen::nonEmpty(gen::container<StringSet>(
18+
gen::map(gen::arbitrary<StorePathName>(), [](StorePathName n) { return n.name; }))),
2019
[](StringSet names) { return (OutputsSpec) OutputsSpec::Names{names}; });
2120
default:
2221
assert(false);

tests/nixos/git-submodules.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
client.succeed("chmod 600 /root/.ssh/id_ed25519")
4646
4747
# Install the SSH key on the builders.
48-
client.wait_for_unit("network-addresses-eth1.service")
48+
client.wait_for_unit("network-online.target")
4949
5050
remote.succeed("mkdir -p -m 700 /root/.ssh")
5151
remote.copy_from_host("key.pub", "/root/.ssh/authorized_keys")
5252
remote.wait_for_unit("sshd")
5353
remote.wait_for_unit("multi-user.target")
54-
remote.wait_for_unit("network-addresses-eth1.service")
55-
client.wait_for_unit("network-addresses-eth1.service")
54+
remote.wait_for_unit("network-online.target")
55+
client.wait_for_unit("network-online.target")
5656
client.succeed(f"ssh -o StrictHostKeyChecking=no {remote.name} 'echo hello world'")
5757
5858
remote.succeed("""

tests/nixos/github-flakes.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ in
187187
github.succeed("cat /var/log/httpd/*.log >&2")
188188
189189
github.wait_for_unit("httpd.service")
190-
github.wait_for_unit("network-addresses-eth1.service")
190+
github.wait_for_unit("network-online.target")
191191
192-
client.wait_for_unit("network-addresses-eth1.service")
192+
client.wait_for_unit("network-online.target")
193193
client.succeed("curl -v https://github.com/ >&2")
194194
out = client.succeed("nix registry list")
195195
print(out)

tests/nixos/nix-copy-closure.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ in
7070
server.copy_from_host("key.pub", "/root/.ssh/authorized_keys")
7171
server.wait_for_unit("sshd")
7272
server.wait_for_unit("multi-user.target")
73-
server.wait_for_unit("network-addresses-eth1.service")
73+
server.wait_for_unit("network-online.target")
7474
75-
client.wait_for_unit("network-addresses-eth1.service")
75+
client.wait_for_unit("network-online.target")
7676
client.succeed(f"ssh -o StrictHostKeyChecking=no {server.name} 'echo hello world'")
7777
7878
# Copy the closure of package A from the client to the server.

tests/nixos/nix-copy.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ in
7979
8080
server.wait_for_unit("sshd")
8181
server.wait_for_unit("multi-user.target")
82-
server.wait_for_unit("network-addresses-eth1.service")
82+
server.wait_for_unit("network-online.target")
8383
84-
client.wait_for_unit("network-addresses-eth1.service")
84+
client.wait_for_unit("network-online.target")
8585
client.wait_for_unit("[email protected]")
8686
# Either the prompt: ]#
8787
# or an OCR misreading of it: 1#

tests/nixos/nix-docker.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ in
6161
{ nodes }:
6262
''
6363
cache.wait_for_unit("harmonia.service")
64-
cache.wait_for_unit("network-addresses-eth1.service")
64+
cache.wait_for_unit("network-online.target")
6565
6666
machine.succeed("mkdir -p /etc/containers")
6767
machine.succeed("""echo '{"default":[{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json""")

tests/nixos/nss-preload.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ in
145145
testScript =
146146
{ nodes, ... }:
147147
''
148-
http_dns.wait_for_unit("network-addresses-eth1.service")
148+
http_dns.wait_for_unit("network-online.target")
149149
http_dns.wait_for_unit("nginx")
150150
http_dns.wait_for_open_port(80)
151151
http_dns.wait_for_unit("unbound")
152152
http_dns.wait_for_open_port(53)
153153
154154
client.start()
155155
client.wait_for_unit('multi-user.target')
156-
client.wait_for_unit('network-addresses-eth1.service')
156+
client.wait_for_unit('network-online.target')
157157
158158
with subtest("can fetch data from a remote server outside sandbox"):
159159
client.succeed("nix --version >&2")

0 commit comments

Comments
 (0)