Merge pull request #14868 from Bhargav-InfraCloud/append-build-flags

Read Go Build Flags from env `GO_BUILD_FLAGS` (#14396)
This commit is contained in:
Marek Siarkowicz
2022-12-01 09:05:46 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -57,6 +57,11 @@ Setup environment:
- For ubuntu and debian run `sudo apt-get install build-essentials`
- Verify that everything is installed by running `make build`
Note: `make build` runs with `-v`. Other build flags can be added through env `GO_BUILD_FLAGS`, **if required**. Eg.,
```console
GO_BUILD_FLAGS="-buildmode=pie" make build
```
[file an issue]: https://github.com/etcd-io/etcd/issues/new/choose
## Implement your change

View File

@@ -1,6 +1,6 @@
.PHONY: build
build:
GO_BUILD_FLAGS="-v" ./scripts/build.sh
GO_BUILD_FLAGS="${GO_BUILD_FLAGS} -v" ./scripts/build.sh
./bin/etcd --version
./bin/etcdctl version
./bin/etcdutl version