Skip to content

Commit 2b26785

Browse files
authored
internal/nix: increase nix --version timeout (#2022)
Increase the `nix --version` command timeout from 3 seconds to 10 seconds. It was timing out in CI.
1 parent 18eca38 commit 2b26785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/nix/nix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ var versionInfo = sync.OnceValues(runNixVersion)
283283

284284
func runNixVersion() (VersionInfo, error) {
285285
// Arbitrary timeout to make sure we don't take too long or hang.
286-
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
286+
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
287287
defer cancel()
288288

289289
// Intentionally don't use the nix.command function here. We use this to

0 commit comments

Comments
 (0)