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

gofail --version should exit with 0 #36

Merged
merged 1 commit into from
Nov 20, 2022
Merged

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Nov 20, 2022

The issue was introduced in #35. The command gofail --version exits with code 1. It isn't correct. Instead, it should exit with 0.

When executing make, it always display an error like below,

$ make
GO_BUILD_FLAGS="-v" ./build.sh
go.etcd.io/gofail/code
go.etcd.io/gofail
./gofail --version
Git SHA: dc004b5
Go Version: go1.19.2
gofail Version: 0.1.0
Go OS/Arch: linux/amd64
make: *** [gofail] Error 1

Signed-off-by: Benjamin Wang wachao@vmware.com

cc @spzala @ramil600

Currently it exits with code 1, and when executing `make`, it always
display an error like below,

$ make
GO_BUILD_FLAGS="-v" ./build.sh
go.etcd.io/gofail/code
go.etcd.io/gofail
./gofail --version
Git SHA:  dc004b5
Go Version:  go1.19.2
gofail Version:  0.1.0
Go OS/Arch: linux/amd64
make: *** [gofail] Error 1

Signed-off-by: Benjamin Wang <wachao@vmware.com>
Copy link
Member

@spzala spzala left a comment

Choose a reason for hiding this comment

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

Thanks much @ahrtr lgtm

@ahrtr
Copy link
Member Author

ahrtr commented Nov 20, 2022

Thanks @spzala for the quick review

@ahrtr ahrtr merged commit 51e235e into etcd-io:master Nov 20, 2022
@spzala
Copy link
Member

spzala commented Nov 20, 2022

Yrw @ahrtr Thank you for continued improvements in the gofail.

@ramil600
Copy link
Contributor

Thank you for fixing @ahrtr

ramil600 pushed a commit to ramil600/gofail that referenced this pull request Nov 22, 2022
`gofail --version` should exit with 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants