$ go mod tidy
$ go clean ./...
$ go build ./...
$ go test ./...
$ git tag vX.Y.Z
$ git push origin vX.Y.Z
- Note that tag names must start with
v. go.sumshould be put into the repository withgo.mod, too.- See Modules for details.
$ go mod tidy
$ go clean ./...
$ go build ./...
$ go test ./...
$ git tag vX.Y.Z
$ git push origin vX.Y.Z
v.go.sum should be put into the repository with go.mod, too.