You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When built as recommended in the README ('go install github.com/plexsystems/konstraint@latest'), konstraint -v has a blank version string. For it to work correctly, I need to do something like this (based on the Makefile):
go install
-ldflags="-s -w -X 'github.com/plexsystems/konstraint/internal/commands.version=${KONSTRAINT_VERSION}'"
"github.com/plexsystems/konstraint@${KONSTRAINT_VERSION}"
Could this be made to work as described in the README?
The text was updated successfully, but these errors were encountered:
Yes, that's a limitation of the current approach. An alternative approach would be to have the version baked into the source, which could optionally be overridden with the linker flags.
When built as recommended in the README ('go install github.com/plexsystems/konstraint@latest'), konstraint -v has a blank version string. For it to work correctly, I need to do something like this (based on the Makefile):
go install
-ldflags="-s -w -X 'github.com/plexsystems/konstraint/internal/commands.version=${KONSTRAINT_VERSION}'"
"github.com/plexsystems/konstraint@${KONSTRAINT_VERSION}"
Could this be made to work as described in the README?
The text was updated successfully, but these errors were encountered: