Skip to content

fix(understackctl): make version stamping actually work - #2192

Open
cardoe wants to merge 1 commit into
mainfrom
understackctl-build-fixes
Open

fix(understackctl): make version stamping actually work#2192
cardoe wants to merge 1 commit into
mainfrom
understackctl-build-fixes

Conversation

@cardoe

@cardoe cardoe commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The Makefile has always built LDFLAGS with -X main.version and
-X main.commit, but neither variable existed and nothing exposed a
--version flag. build-all also expanded $() instead of $(LDFLAGS).
Declare both variables, wire them into understackctl --version.

Drop the go-lint workflow's GO_VERSION and run setup-go in the lint
job instead, reading each module's own go.mod.

The Makefile has always built LDFLAGS with -X main.version and
-X main.commit, but neither variable existed and nothing exposed a
--version flag. build-all also expanded $() instead of $(LDFLAGS).
Declare both variables, wire them into `understackctl --version`.

Drop the go-lint workflow's GO_VERSION and run setup-go in the lint
job instead, reading each module's own go.mod.
@cardoe
cardoe requested a review from a team August 5, 2026 04:23
@geetikabatra

geetikabatra commented Aug 5, 2026

Copy link
Copy Markdown

LGTM by looking at the code. I haven't tried the ctl manually myself on my laptop. Is there a definitive guide which I could follow to test this myself? Would I require a dev setup of understack in my local to test this?

@cardoe

cardoe commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

LDTM by looking at the code. I haven't tried the ctl manually myself on my laptop. Is there a definitive guide which I could follow to test this myself? Would I require a dev setup of understack in my local to test this?

https://rackerlabs.github.io/understack/operator-guide/understackctl/

@cardoe
cardoe enabled auto-merge August 5, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants