-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: building with go get
results in invalid binary
#169
Comments
As discussed internally, I confirm those findings. Also, I agree on the solution. |
It looks like we SHOULD be already pushing :latest, but aren't: https://github.com/iovisor/kubectl-trace/blob/master/Makefile#L117-L121 https://github.com/iovisor/kubectl-trace/blob/master/build/scripts/ci-release-image.sh#L28-L30 I think this is because github changed how |
https://github.com/iovisor/kubectl-trace/blob/master/Makefile#L36 we'll need to do a pass over all these variables and ensure their defaults are sane |
Building as per our docs https://github.com/iovisor/kubectl-trace#source when building with
go get
, the resulting binary behaves bizarrely. This is mostly due to the lack of LDFLAGS being specified, and any variable which requires git to not be populated.The outcome of this is that the images will have no tag, so will fail to run, and the
version
subcommand will be empty.To fix this, we should ensure that these variables have reasonable defaults for when they are NOT specified, for instance, we can default the
version
tomaster
, and the image tag tolatest
, as well as ensure we are pushing the :latest tag on pushes to master.The text was updated successfully, but these errors were encountered: