Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse built-in plugin versions from build info #848

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

lovromazgon
Copy link
Member

Description

Standalone plugins have the correct version because we set it with -ldflags when building the binary. Built-in plugins on the other hand currently report their version using a constant that we need to remember to update before every release (example). This PR makes this step unnecessary, because Conduit will overwrite the version with the version reported by go.mod.

I wanted to add unit tests but debug.BuildInfo is not populated in tests 馃槙

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@lovromazgon lovromazgon requested a review from a team as a code owner February 1, 2023 13:03
Copy link
Contributor

@hariso hariso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 馃

pkg/plugin/builtin/registry.go Show resolved Hide resolved
@lovromazgon lovromazgon enabled auto-merge (squash) February 1, 2023 14:39
@lovromazgon lovromazgon merged commit 929fe12 into main Feb 1, 2023
@lovromazgon lovromazgon deleted the lovro/built-in-plugin-versions branch February 1, 2023 14:41
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.

None yet

2 participants