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

if Viper is not set, go get fails #1556

Closed
georgettica opened this issue Dec 9, 2021 · 2 comments · Fixed by #1557
Closed

if Viper is not set, go get fails #1556

georgettica opened this issue Dec 9, 2021 · 2 comments · Fixed by #1557
Assignees
Labels
area/cli [deprecated] For the cobra CLI !!! moved to spf13/cobra-cli
Milestone

Comments

@georgettica
Copy link
Contributor

go get .
# XXX/cmd
cmd/root.go:33:3: undefined: os

os.Exit(1)

@georgettica
Copy link
Contributor Author

georgettica commented Dec 9, 2021

the testing steps are:

pushd $(mktemp -d)
git clone https://github.com/spf13/cobra.git
cd cobra
make cobra_generator
cd ../
mkdir example
cd example
go mod init example.com
../cobra/bin/cobra_linux_amd64 init
go build . # this works
../cobra/bin/cobra_linux_amd64 add foo
go build .
popd

@jpmcb jpmcb self-assigned this Dec 9, 2021
@jpmcb jpmcb added this to the 1.3.0 milestone Dec 9, 2021
@jpmcb jpmcb added the area/cli [deprecated] For the cobra CLI !!! moved to spf13/cobra-cli label Dec 9, 2021
@georgettica
Copy link
Contributor Author

Thanks for the effort and quick fix 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli [deprecated] For the cobra CLI !!! moved to spf13/cobra-cli
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants