diff options
author | Steven Eckhoff <steven.eckhoff.opensource@gmail.com> | 2021-02-25 02:29:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 09:29:14 +0100 |
commit | 6bfad8fce80fe9bf82c283dc2af4bb311dd94e1d (patch) | |
tree | 79f4940a943e5fc18dcf24985563f244fd351baf /build.go | |
parent | 6ebab5db074a825d4179f720a328bb875afc0b8c (diff) | |
download | syncthing-6bfad8fce80fe9bf82c283dc2af4bb311dd94e1d.tar.gz syncthing-6bfad8fce80fe9bf82c283dc2af4bb311dd94e1d.zip |
build: Make stupgrades build target conditional (fixes #7199) (#7404)
Diffstat (limited to 'build.go')
-rw-r--r-- | build.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -217,7 +217,7 @@ var dependencyRepos = []dependencyRepo{ {path: "xdr", repo: "https://github.com/calmh/xdr.git", commit: "08e072f9cb16"}, } -func init() { +func initTargets() { all := targets["all"] pkgs, _ := filepath.Glob("cmd/*") for _, pkg := range pkgs { @@ -226,6 +226,9 @@ func init() { // ignore dotfiles continue } + if noupgrade && pkg == "stupgrades" { + continue + } all.buildPkgs = append(all.buildPkgs, fmt.Sprintf("github.com/syncthing/syncthing/cmd/%s", pkg)) } targets["all"] = all @@ -257,6 +260,8 @@ func main() { }() } + initTargets() + // Invoking build.go with no parameters at all builds everything (incrementally), // which is what you want for maximum error checking during development. if flag.NArg() == 0 { |