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

Panic in Viper library during s3git remote add #17

Open
thejacobtaylor opened this issue Aug 1, 2016 · 2 comments
Open

Panic in Viper library during s3git remote add #17

thejacobtaylor opened this issue Aug 1, 2016 · 2 comments

Comments

@thejacobtaylor
Copy link
Contributor

Created a user with IAM, they did not have any permissions yet. Tried to run s3git remote add with latest code. panic...

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x50 pc=0x407e3e8]

goroutine 1 [running]:
panic(0x46b69e0, 0xc8200120c0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:481 +0x3e6
github.com/spf13/viper.pflagValue.HasChanged(0x0, 0xc820079bf0)
/Users/jacob/work/src/github.com/spf13/viper/flags.go:41 +0x8
github.com/spf13/viper.(Viper).find(0xc8200e62a0, 0x47ad060, 0x8, 0x0, 0x0)
/Users/jacob/work/src/github.com/spf13/viper/viper.go:738 +0x14a
github.com/spf13/viper.(Viper).Get(0xc8200e62a0, 0x47ad060, 0x8, 0x0, 0x0)
/Users/jacob/work/src/github.com/spf13/viper/viper.go:461 +0x10a
github.com/spf13/viper.(Viper).GetString(0xc8200e62a0, 0x47ad060, 0x8, 0x0, 0x0)
/Users/jacob/work/src/github.com/spf13/viper/viper.go:539 +0x41
github.com/spf13/viper.GetString(0x47ad060, 0x8, 0x0, 0x0)
/Users/jacob/work/src/github.com/spf13/viper/viper.go:537 +0x43
github.com/s3git/s3git/cmd.glob.func10(0x4b31aa0, 0xc82019c930, 0x1, 0x7)
/Users/jacob/work/src/github.com/s3git/s3git/cmd/remote.go:51 +0x147
github.com/spf13/cobra.(Command).execute(0x4b31aa0, 0xc82019c8c0, 0x7, 0x7, 0x0, 0x0)
/Users/jacob/work/src/github.com/spf13/cobra/command.go:603 +0x896
github.com/spf13/cobra.(Command).ExecuteC(0x4b32100, 0x4b31aa0, 0x0, 0x0)
/Users/jacob/work/src/github.com/spf13/cobra/command.go:689 +0x55c
github.com/spf13/cobra.(Command).Execute(0x4b32100, 0x0, 0x0)
/Users/jacob/work/src/github.com/spf13/cobra/command.go:648 +0x2d
github.com/s3git/s3git/cmd.Execute()
/Users/jacob/work/src/github.com/s3git/s3git/cmd/root.go:54 +0x23
main.main()
/Users/jacob/work/src/github.com/s3git/s3git/main.go:67 +0x8ec

@rstormsf
Copy link

rstormsf commented Oct 9, 2016

the same thing happening on my machine. I also remember git pull viper didn't go smooth. But when I went directly to the $GOPATH directory for viber dependency it pulled the latest code just fine :-(

So I ended up just using compiled version.
wget -q -O s3git https://github.com/s3git/s3git/releases/download/v0.9.2/s3git-darwin-amd64

@rjkroege
Copy link

The example

s3git clone s3://s3git-100m -a AKIAI26TSIF6JIMMDSPQ -s 5NvshAhI0KMz5Gbqkp7WNqXYlnjBjkf9IaJD75x7

also panics in viper.

github.com/spf13/viper.pflagValue.HasChanged(0x0, 0xc0002e58f0)
	/Users/rjkroege/tools/gopkg/pkg/mod/github.com/spf13/viper@v1.7.1/flags.go:41 +0x5
...

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

No branches or pull requests

3 participants