Skip to content

Instantly share code, notes, and snippets.

@sylr
Last active March 5, 2026 20:02
Show Gist options
  • Select an option

  • Save sylr/f88f44172f2c283331d844a7d012bdfa to your computer and use it in GitHub Desktop.

Select an option

Save sylr/f88f44172f2c283331d844a7d012bdfa to your computer and use it in GitHub Desktop.
Build go-tools with latest versions
GO ?= go
export GITFLAGS='--filter=blob:none'
build: go.work
$(GO) build ./github.com/a-h/templ/cmd/templ
$(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/a-h/templ/cmd/templ
$(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/a-h/templ && git pull origin main
cd ./github.com/aarzilli/whydeadcode && git pull origin master
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 main
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/a-h/templ/:
git clone git@github.com:a-h/templ.git ./github.com/a-h/templ
github.com/aarzilli/whydeadcode:
git clone git@github.com:aarzilli/whydeadcode.git ./github.com/aarzilli/whydeadcode
github.com/daixiang0/gci/:
git clone git@github.com:daixiang0/gci.git ./github.com/daixiang0/gci
github.com/go-delve/delve/:
git clone git@github.com:go-delve/delve.git ./github.com/go-delve/delve
github.com/golangci/golangci-lint/:
git clone git@github.com:golangci/golangci-lint.git ./github.com/golangci/golangci-lint
golang.org/x/net/:
git clone git@github.com:golang/net.git ./golang.org/x/net/
golang.org/x/sync/:
git clone git@github.com:golang/sync.git ./golang.org/x/sync/
golang.org/x/telemetry/:
git clone git@github.com:golang/telemetry.git ./golang.org/x/telemetry/
golang.org/x/tools/:
git clone git@github.com:golang/tools.git ./golang.org/x/tools/
honnef.co/go/tools/:
git clone git@github.com:dominikh/go-tools.git ./honnef.co/go/tools/
go.work: \
github.com/a-h/templ/ \
github.com/aarzilli/whydeadcode \
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/a-h/templ
$(GO) work use ./github.com/aarzilli/whydeadcode
$(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