-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
Describe the bug
Command throws paninc
To Reproduce
Steps to reproduce the behavior:
- Go to project
- Type
gomodctl check - See error
Actual behavior
Config File "gomodctl" Not Found in "[/Users/furkan]"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x11fa4ae]
goroutine 1 [running]:
github.com/Masterminds/semver.(*Version).Original(...)
/home/runner/go/pkg/mod/github.com/!masterminds/semver@v1.5.0/version.go:126
github.com/beatlabs/gomodctl/internal/cmd/check.(*Options).Execute(0xc0001561d0, 0x1628660, 0xc000156170)
/home/runner/work/gomodctl/gomodctl/internal/cmd/check/check.go:62 +0x14e
github.com/beatlabs/gomodctl/internal/cmd/check.NewCmdCheck.func2(0xc000174500, 0x1995a50, 0x0, 0x0)
/home/runner/work/gomodctl/gomodctl/internal/cmd/check/check.go:41 +0x3c
github.com/spf13/cobra.(*Command).execute(0xc000174500, 0x1995a50, 0x0, 0x0, 0xc000174500, 0x1995a50)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x2aa
github.com/spf13/cobra.(*Command).ExecuteC(0x19705c0, 0xc0000c5f08, 0x1, 0x1)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fb
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
main.Execute()
/home/runner/work/gomodctl/gomodctl/cmd/gomodctl/gomodctl.go:80 +0x476
main.main()
/home/runner/work/gomodctl/gomodctl/cmd/gomodctl/gomodctl.go:124 +0x20
Desktop (please complete the following information):
- OS:
macOS
Metadata
Metadata
Assignees
Labels
No labels