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

Fix json output #17

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Fix json output #17

merged 1 commit into from
Oct 25, 2023

Conversation

feloy
Copy link
Contributor

@feloy feloy commented Oct 20, 2023

Running doa analyze with the option --o json pacnics:

./bin/doa analyze --f Dockerfile --o json
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/redhat-developer/docker-openshift-analyzer/pkg/cli.doAnalyze(0xc0004f8900?, {0xc00070b5c0, 0x0, 0x4?})
	/home/phmartin/Documents/gits/podman-desktop-image-checker-openshift-ext/pkg/cli/analyze.go:45 +0x335
github.com/spf13/cobra.(*Command).execute(0xc0004f8900, {0xc00070b580, 0x4, 0x4})
	/home/phmartin/go/pkg/mod/github.com/spf13/[email protected]/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xc0004f8600)
	/home/phmartin/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	/home/phmartin/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
main.main()
	/home/phmartin/Documents/gits/podman-desktop-image-checker-openshift-ext/main.go:36 +0x14f

Copy link
Member

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

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

LGTM

@jeffmaury jeffmaury merged commit 6c32cb0 into redhat-developer:main Oct 25, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants