-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6992 from TheThingsNetwork/feature/remove-tools-deps
Update developer tooling
- Loading branch information
Showing
4 changed files
with
8 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,7 +161,6 @@ var createOAuthClient = &cobra.Command{ | |
} | ||
return nil | ||
}) | ||
|
||
if err != nil { | ||
return err | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,19 +30,15 @@ import ( | |
// Go namespace. | ||
type Go mg.Namespace | ||
|
||
var minGoVersion = "1.11.4" | ||
|
||
var goModuleEnv = map[string]string{ | ||
"GO111MODULE": "on", | ||
} | ||
var minGoVersion = "1.21.0" | ||
|
||
var goTags = os.Getenv("GO_TAGS") | ||
|
||
const ( | ||
gofumpt = "mvdan.cc/gofumpt@v0.4.0" | ||
golangciLint = "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1" | ||
goveralls = "github.com/mattn/[email protected].11" | ||
bufCLI = "github.com/bufbuild/buf/cmd/buf@v1.25.1" | ||
gofumpt = "mvdan.cc/gofumpt@v0.6.0" | ||
golangciLint = "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2" | ||
goveralls = "github.com/mattn/[email protected].12" | ||
bufCLI = "github.com/bufbuild/buf/cmd/buf@v1.30.0" | ||
) | ||
|
||
func buildGoArgs(cmd string, args ...string) []string { | ||
|
@@ -53,7 +49,7 @@ func buildGoArgs(cmd string, args ...string) []string { | |
} | ||
|
||
func execGoFrom(dir string, stdout, stderr io.Writer, cmd string, args ...string) error { | ||
return execFrom(dir, goModuleEnv, stdout, stderr, "go", buildGoArgs(cmd, args...)...) | ||
return execFrom(dir, nil, stdout, stderr, "go", buildGoArgs(cmd, args...)...) | ||
} | ||
|
||
func execGo(stdout, stderr io.Writer, cmd string, args ...string) error { | ||
|