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

Bug(github-reposcaffolding-golang): panic when execute dtm delete -f xxx.yaml #238

Closed
daniel-hutao opened this issue Feb 26, 2022 · 0 comments · Fixed by #239
Closed

Bug(github-reposcaffolding-golang): panic when execute dtm delete -f xxx.yaml #238

daniel-hutao opened this issue Feb 26, 2022 · 0 comments · Fixed by #239
Labels
bug Something isn't working

Comments

@daniel-hutao
Copy link
Member

Describe the Bug

Forget to set GITHUB_TOKEN env variable and execute the ./dtm-darwin-arm64 delete -y -f config-github-reposcaffolding-golang.yaml --debug

...
...

2022-02-26 10:44:38 ℹ [INFO]  -------------------- [  Processing progress: 1/1.  ] --------------------
2022-02-26 10:44:38 ℹ [INFO]  Processing: crbot -> Delete ...
2022-02-26 10:44:38 ℹ [DEBUG]  Auth is enabled.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x129758368]

goroutine 1 [running]:
github.com/merico-dev/stream/pkg/util/github.NewClient.func1()
        github.com/merico-dev/stream/pkg/util/github/github.go:45 +0x28
github.com/merico-dev/stream/pkg/util/github.NewClient(0x14000035a00)
        github.com/merico-dev/stream/pkg/util/github/github.go:74 +0x3fc
github.com/merico-dev/stream/internal/pkg/plugin/reposcaffolding/github/golang.uninstall(0x14000035980)
        github.com/merico-dev/stream/internal/pkg/plugin/reposcaffolding/github/golang/delete.go:36 +0x124
github.com/merico-dev/stream/internal/pkg/plugin/reposcaffolding/github/golang.Delete(0x14000035970)
        github.com/merico-dev/stream/internal/pkg/plugin/reposcaffolding/github/golang/delete.go:26 +0x194
github.com/merico-dev/stream/cmd/reposcaffolding/github/golang.Plugin.Delete({0x0, 0x0}, 0x14000035970)
        github.com/merico-dev/stream/cmd/reposcaffolding/github/golang/main.go:32 +0x34
github.com/merico-dev/stream/internal/pkg/pluginengine.Delete(0x14000035940)
        github.com/merico-dev/stream/internal/pkg/pluginengine/plugin.go:55 +0xf8
github.com/merico-dev/stream/internal/pkg/pluginengine.execute({0x100f88e10, 0x1400000e348}, {0x14000010228, 0x1, 0x1})
        github.com/merico-dev/stream/internal/pkg/pluginengine/change.go:104 +0x578
github.com/merico-dev/stream/internal/pkg/pluginengine.Remove({0x16f56f8f8, 0x29}, 0x1)
        github.com/merico-dev/stream/internal/pkg/pluginengine/cmd_delete.go:48 +0x39c
main.deleteCMDFunc(0x101286a20, {0x14000035400, 0x0, 0x4})
        github.com/merico-dev/stream/cmd/devstream/delete.go:23 +0x98
github.com/spf13/cobra.(*Command).execute(0x101286a20, {0x14000035380, 0x4, 0x4})
        github.com/spf13/cobra@v1.2.1/command.go:860 +0xa04
github.com/spf13/cobra.(*Command).ExecuteC(0x101286ca0)
        github.com/spf13/cobra@v1.2.1/command.go:974 +0x7b8
github.com/spf13/cobra.(*Command).Execute(0x101286ca0)
        github.com/spf13/cobra@v1.2.1/command.go:902 +0x30
main.main()
        github.com/merico-dev/stream/cmd/devstream/main.go:85 +0x30
@daniel-hutao daniel-hutao added the bug Something isn't working label Feb 26, 2022
@daniel-hutao daniel-hutao changed the title Bug(github-reposcaffolding-golang): panic when execute dtm delete -f xxx.yaml Bug(github-reposcaffolding-golang): panic when execute dtm delete -f xxx.yaml Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant