Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 6, 2026

The goreleaser configuration was using {{ .Summary }} (commit message) instead of {{ .Version }} (release version) in ldflags, causing the CLI to report commit messages as version strings.

Changes

  • .goreleaser.yml: Changed ldflags from {{ .Summary }} to {{ .Version }}

    # Before
    - -X "github.com/mudler/luet/cmd.Version={{ .Summary }}"
    
    # After
    - -X "github.com/mudler/luet/cmd.Version={{ .Version }}"
  • .gitignore: Added luet-test* pattern to exclude test binaries

The Makefile ldflags were already correct and unchanged.

Original prompt

Seems the CLI version does not get correctly propagated, the ldflags we set aren't correct


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 6, 2026 08:41
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix incorrect propagation of CLI version with ldflags Fix goreleaser version ldflags to use .Version instead of .Summary Jan 6, 2026
Copilot AI requested a review from mudler January 6, 2026 08:45
@mudler mudler marked this pull request as ready for review January 6, 2026 08:53
@mudler mudler merged commit dd451a1 into master Jan 6, 2026
3 of 4 checks passed
@mudler mudler deleted the copilot/fix-cli-version-propagation branch January 6, 2026 08:53
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