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 when using local modules #129

Open
munir131 opened this issue Jun 13, 2023 · 0 comments · May be fixed by #130
Open

Panic when using local modules #129

munir131 opened this issue Jun 13, 2023 · 0 comments · May be fixed by #130

Comments

@munir131
Copy link

https://github.com/project-flogo/cli/blob/master/util/mod.go#L309

In case of that length of mods should be more than 4.

$ flogo build --verbose -e                                                                
panic: runtime error: index out of range [3] with length 2

goroutine 1 [running]:
github.com/project-flogo/cli/util.(*ModDepManager).AddReplacedContribForBuild(0xc0000122d0)
	/home/munir/goWorkspace/pkg/mod/github.com/project-flogo/cli@v0.11.0/util/mod.go:309 +0x41d
github.com/project-flogo/cli/api.BuildProject({0x91a8e8, 0xc0000a6410}, {0x40?, 0xdd?, {0x0?, 0xc0000fe200?}})
	/home/munir/goWorkspace/pkg/mod/github.com/project-flogo/cli@v0.11.0/api/build.go:23 +0x7d
github.com/project-flogo/cli/commands.glob..func2(0xb96b60?, {0xc000092460?, 0x2?, 0x2?})
	/home/munir/goWorkspace/pkg/mod/github.com/project-flogo/cli@v0.11.0/commands/build.go:49 +0x116
github.com/spf13/cobra.(*Command).execute(0xb96b60, {0xc000092440, 0x2, 0x2})
	/home/munir/goWorkspace/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0xb972e0)
	/home/munir/goWorkspace/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2ef
github.com/spf13/cobra.(*Command).Execute(...)
	/home/munir/goWorkspace/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/project-flogo/cli/commands.Execute()
	/home/munir/goWorkspace/pkg/mod/github.com/project-flogo/cli@v0.11.0/commands/root.go:52 +0x25
main.main()
	/home/munir/goWorkspace/pkg/mod/github.com/project-flogo/cli@v0.11.0/cmd/flogo/main.go:26 +0x8b
@munir131 munir131 linked a pull request Jun 13, 2023 that will close this issue
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 a pull request may close this issue.

1 participant