| 21 |
# Build the tool, using -ldflags to link in the current gitspec |
21 |
# Build the tool, using -ldflags to link in the current gitspec |
| 22 |
go build -o "bin/$i" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec `git rev-parse HEAD` -X github.com/mongodb/mongo-tools/common/options.VersionStr $(git describe)" -tags "$tags" "$i/main/$i.go" |
22 |
go build -buildmode=pie -o "bin/$i" -tags "$tags" "$i/main/$i.go" |