Last active
July 6, 2024 16:02
-
-
Save sylr/f88f44172f2c283331d844a7d012bdfa to your computer and use it in GitHub Desktop.
Build go-tools with latest versions
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
GO ?= go | |
build: go.work | |
$(GO) build ./github.com/go-delve/delve/cmd/dlv | |
$(GO) build ./github.com/golangci/golangci-lint/cmd/golangci-lint | |
$(GO) build ./golang.org/x/tools/cmd/deadcode | |
$(GO) build ./golang.org/x/tools/gopls | |
install: go.work | |
$(GO) install ./github.com/daixiang0/gci/ | |
$(GO) install ./github.com/go-delve/delve/cmd/dlv | |
$(GO) install ./github.com/golangci/golangci-lint/cmd/golangci-lint | |
$(GO) install ./golang.org/x/tools/cmd/deadcode | |
$(GO) install ./golang.org/x/tools/gopls | |
upgrade: go.work | |
cd ./github.com/daixiang0/gci/ && git pull origin master | |
cd ./github.com/go-delve/delve && git pull origin master | |
cd ./github.com/golangci/golangci-lint && git pull origin master | |
cd ./golang.org/x/net/ && git pull origin master | |
cd ./golang.org/x/sync/ && git pull origin master | |
cd ./golang.org/x/telemetry/ && git pull origin master | |
cd ./golang.org/x/tools/ && git pull origin master | |
cd ./honnef.co/go/tools/ && git pull origin master | |
github.com/daixiang0/gci/: | |
git clone [email protected]:daixiang0/gci.git ./github.com/daixiang0/gci | |
github.com/go-delve/delve/: | |
git clone [email protected]:go-delve/delve.git ./github.com/go-delve/delve | |
github.com/golangci/golangci-lint/: | |
git clone [email protected]:golangci/golangci-lint.git ./github.com/golangci/golangci-lint | |
golang.org/x/net/: | |
git clone [email protected]:golang/net.git ./golang.org/x/net/ | |
golang.org/x/sync/: | |
git clone [email protected]:golang/sync.git ./golang.org/x/sync/ | |
golang.org/x/telemetry/: | |
git clone [email protected]:golang/telemetry.git ./golang.org/x/telemetry/ | |
golang.org/x/tools/: | |
git clone [email protected]:golang/tools.git ./golang.org/x/tools/ | |
honnef.co/go/tools/: | |
git clone [email protected]:dominikh/go-tools.git ./honnef.co/go/tools/ | |
go.work: \ | |
github.com/daixiang0/gci/ \ | |
github.com/go-delve/delve/ \ | |
github.com/golangci/golangci-lint/ \ | |
golang.org/x/net/ \ | |
golang.org/x/sync/ \ | |
golang.org/x/telemetry/ \ | |
golang.org/x/tools/ \ | |
honnef.co/go/tools/ | |
rm -f go.work | |
$(GO) work init | |
$(GO) work use ./github.com/daixiang0/gci | |
$(GO) work use ./github.com/go-delve/delve | |
$(GO) work use ./github.com/golangci/golangci-lint | |
$(GO) work use ./golang.org/x/net | |
$(GO) work use ./golang.org/x/sync | |
$(GO) work use ./golang.org/x/telemetry | |
$(GO) work use ./golang.org/x/tools | |
$(GO) work use ./golang.org/x/tools/gopls | |
$(GO) work use ./honnef.co/go/tools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment