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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cilium-cli: fix ldflags to override correct #132507

Merged
merged 2 commits into from
Jun 1, 2023
Merged

cilium-cli: fix ldflags to override correct #132507

merged 2 commits into from
Jun 1, 2023

Conversation

tklauser
Copy link
Contributor

@tklauser tklauser commented Jun 1, 2023

The Version var was moved and exported upstream, see cilium/cilium-cli#1646 for details.

This fixes an issue when cilium built from Homebrew would no longer report any version in cilium version or cilium sysdump, e.g.

🔍 Collecting sysdump with cilium-cli version: , args: [sysdump]

Also add a test that verifies cilium version output and prefix the version with v like done upstream.

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@github-actions github-actions bot added the go Go use is a significant feature of the PR or issue label Jun 1, 2023
Formula/cilium-cli.rb Outdated Show resolved Hide resolved
@tklauser tklauser requested a review from carlocab June 1, 2023 11:26
The Version var was moved and exported upstream, see
cilium/cilium-cli#1646 for details.

This fixes an issue when `cilium` built from Homebrew would no longer
report any version in `cilium version` or `cilium sysdump`, e.g.

> 🔍 Collecting sysdump with cilium-cli version: , args: [sysdump]

Also add a test that verifies `cilium version` output and prefix the
version with `v` like done upstream.
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks; nice work!

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Jun 1, 2023
@BrewTestBot BrewTestBot enabled auto-merge June 1, 2023 12:53
@BrewTestBot BrewTestBot added this pull request to the merge queue Jun 1, 2023
Merged via the queue into Homebrew:master with commit 8411a9c Jun 1, 2023
@tklauser tklauser deleted the cilium-cli-version branch June 1, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. go Go use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants