chaos-mesh / chaosd

A Chaos Engineering toolkit.
Apache License 2.0
135 stars 63 forks source link

Fix: gitVersion is invalid when executing `chaosd version` #205

Closed cwen0 closed 2 years ago

cwen0 commented 2 years ago

Signed-off-by: Cwen Yin cwenyin0@gmail.com

chaosd verson:

Chaosd Version: version.Info{GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"$Format:%H$", BuildDate:"2022-08-15T02:38:21Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64"} 

Fixed:

GO15VENDOREXPERIMENT="1" CGO_ENABLED=1 GOOS="" GOARCH="" go build -ldflags '-s -w -X 'github.com/chaos-mesh/chaosd/pkg/version.buildDate=2022-08-16T04:01:22Z' -X 'github.com/chaos-mesh/chaosd/pkg/version.gitCommit=b3d667362954aae0213e86e86a553f54a4b1c339' -X 'github.com/chaos-mesh/chaosd/pkg/version.gitVersion=fix-git-version-gb3d667362954aa'' -tags "" -o bin/chaosd ./cmd/main.go
ti-chi-bot commented 2 years ago

[REVIEW NOTIFICATION]

This pull request has been approved by:

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment. After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.
cwen0 commented 2 years ago

/merge

ti-chi-bot commented 2 years ago

This pull request has been accepted and is ready to merge.

Commit hash: 5ea9e98c630edb912a67dfa995de5bb503527ece