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

Move the CLI version string to the default package #2362

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

michi-covalent
Copy link
Contributor

Move the CLI version string from internal/cli/cmd to default/ so that it can be exported from outside the cilium-cli repo.

Ref: cilium/design-cfps#9

@michi-covalent
Copy link
Contributor Author

✅ tested locally

% make
CGO_ENABLED=0 go build  \
                -ldflags "-w -s \
                -X 'github.com/cilium/cilium-cli/defaults.CLIVersion=v0.15.23-62-g218408bb'" \
                -o cilium \
                ./cmd/cilium
% ./cilium version
cilium-cli: v0.15.23-62-g218408bb compiled with go1.22.0 on darwin/arm64

@michi-covalent michi-covalent marked this pull request as ready for review March 5, 2024 02:24
@michi-covalent michi-covalent requested a review from a team as a code owner March 5, 2024 02:24
Move the CLI version string from internal/cli/cmd to default/ so that it
can be exported from outside the cilium-cli repo.

Ref: cilium/design-cfps#9

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
@michi-covalent
Copy link
Contributor Author

ok i'm going in

@michi-covalent michi-covalent merged commit b922331 into main Mar 5, 2024
13 checks passed
@michi-covalent michi-covalent deleted the pr/michi/cli-version branch March 5, 2024 04:16
michi-covalent pushed a commit that referenced this pull request Mar 6, 2024
followup #2362

Signed-off-by: Rui Chen <rui@chenrui.dev>
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