Skip to content

Commit c6edee2

Browse files
authored
subfinder: Disable version check on startup (NixOS#365710)
2 parents caffc47 + 459a729 commit c6edee2

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/v2/pkg/runner/options.go
2+
+++ b/v2/pkg/runner/options.go
3+
@@ -107,7 +107,7 @@ func ParseOptions() *Options {
4+
5+
flagSet.CreateGroup("update", "Update",
6+
flagSet.CallbackVarP(GetUpdateCallback(), "update", "up", "update subfinder to latest version"),
7+
- flagSet.BoolVarP(&options.DisableUpdateCheck, "disable-update-check", "duc", false, "disable automatic subfinder update check"),
8+
+ flagSet.BoolVarP(&options.DisableUpdateCheck, "disable-update-check", "duc", true, "disable automatic subfinder update check"),
9+
)
10+
11+
flagSet.CreateGroup("output", "Output",

pkgs/by-name/su/subfinder/package.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ buildGoModule rec {
1919

2020
modRoot = "./v2";
2121

22+
patches = [
23+
# Disable automatic version check
24+
./disable-update-check.patch
25+
];
26+
2227
subPackages = [
2328
"cmd/subfinder/"
2429
];

0 commit comments

Comments
 (0)