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.

@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
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`.
@cardoe
cardoe force-pushed the understackctl-build-fixes branch from ca6bbb3 to d6effa3 Compare August 10, 2026 19:36
@geetikabatra

geetikabatra commented Aug 16, 2026

Copy link
Copy Markdown

I thought we decided to sepearate version change and the change in the MAKEFILE separate.

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