etcd
etcd copied to clipboard
[makefile can't set GO_BUILD_FLAGS through env ]
What happened?
Makefile
.PHONY: build build: GO_BUILD_FLAGS="-v" ./scripts/build.sh ./bin/etcd --version ./bin/etcdctl version ./bin/etcdutl version
GO_BUILD_FLAGS="-v" will overwrite GO_BUILD_FLAGS in env.
What did you expect to happen?
Makefile
.PHONY: build build: GO_BUILD_FLAGS="-v" ./scripts/build.sh ./bin/etcd --version ./bin/etcdctl version ./bin/etcdutl version
It should set as following.
GO_BUILD_FLAGS +=" -v"
How can we reproduce it (as minimally and precisely as possible)?
Repair it in Makefile!!!
.PHONY: build build: GO_BUILD_FLAGS="-v" ./scripts/build.sh ./bin/etcd --version ./bin/etcdctl version ./bin/etcdutl version
It should set as following.
GO_BUILD_FLAGS +=" -v"
Anything else we need to know?
No response
Etcd version (please run commands below)
$ etcd --version
# paste output here
$ etcdctl version
# paste output here
It affects all etcd versions obviously.
Etcd configuration (command line flags or environment variables)
paste your configuration here
Etcd debug information (please run commands blow, feel free to obfuscate the IP address or FQDN in the output)
$ etcdctl member list -w table
# paste output here
$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here
Relevant log output
No response
/important , We need it to add compile-security-option like "-buildmode=pie -trimpath" @bmizerany @technoweenie @drnic @pjjw
Can i work on this one?
Sure, Makefile definetly needs more love.
Sure, Makefile definetly needs more love.
wuwuwuwu, I also want to work on this one.