Skip to content

🌱 Set plugin version during build and release - #36

Open
aufi wants to merge 1 commit into
migtools:mainfrom
aufi:relase-plugin-version-ldflags
Open

aufi wants to merge 1 commit into
migtools:mainfrom
aufi:relase-plugin-version-ldflags

Conversation

@aufi

@aufi aufi commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Replace the hard-coded plugin version with a development default that release builds override through Go linker flags. This keeps local builds identifiable as devel and makes the binary metadata match the release selected from the plugin index.

Replace the release workflow with a verified, immutable release process. It validates the requested version, refuses to reuse existing tags, checks module tidiness, runs unit tests, and builds binaries for Linux, macOS, and Windows. The workflow checks that every generated binary contains the requested version and verifies the version reported by the Linux plugin metadata endpoint before publishing artifacts and checksums.

Remove automatic updates to crane-plugins from the release workflow. Add an index entry only after the release artifacts have passed all checks. Update the README with the local development version behavior and a linker-flag build example.

Fixes: #35

Replace the hard-coded plugin version with a development default that release
builds override through Go linker flags. This keeps local builds identifiable
as devel and makes the binary metadata match the release selected from the
plugin index.

Replace the release workflow with a verified, immutable release process. It
validates the requested version, refuses to reuse existing tags, checks module
tidiness, runs unit tests, and builds binaries for Linux, macOS, and Windows.
The workflow checks that every generated binary contains the requested version
and verifies the version reported by the Linux plugin metadata endpoint before
publishing artifacts and checksums.

Remove automatic updates to crane-plugins from the release workflow. Add an
index entry only after the release artifacts have passed all checks. Update the
README with the local development version behavior and a linker-flag build
example.

Fixes: migtools#35

Signed-off-by: Marek Aufart <maufart@redhat.com>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fe5a7c33-6c30-4e61-bfc1-57f7023a6e71
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

Set the reported plugin version at release build time

1 participant