-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Pull version from single SoT (main.go
)
#61
Conversation
This could go the other way around too, stamping it in with `-ldflags='-X appVersion=$(VERSION)'`
Thanks! I think I most often saw others use the alternative |
Sure, will do. The difference is whether you only want a version to come from the build system so that you'd get something like:
|
Hmmm very good point, sorry allow me to change my mind, let's go with your current version 😅 |
Would there be any downsides with the simpler |
Not really. The main difference is that I was trying to be flexible with
vs
|
OK I'll be mindful about it, thanks! |
OOC, unrelated, why do you vendor the deps like this? I think this is meant for checking in the deps. If you're going to .gitignore the vendor dir, why not let the default go pkg cache be used? |
I add a tarball with vendored dependencies to the release only because some distros build (or prefer to build) offline, which is a problem if they need to allow internet to run I haven't been using Makefile for local development for a while, I suppose it's not correct that my |
Ah, that make sense! Yeah I saw it show up when I did I guess you could have:
and drop |
Agree, just pushed 👍 |
This might be helpful, no worries otherwise :)
This could go the other way around too, stamping it in with
-ldflags='-X appVersion=$(VERSION)'