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

Binding a JSON type to a package causes a panic #1149

Open
AkimitsuTosha opened this issue May 7, 2022 · 0 comments
Open

Binding a JSON type to a package causes a panic #1149

AkimitsuTosha opened this issue May 7, 2022 · 0 comments

Comments

@AkimitsuTosha
Copy link
Contributor

In the current master version, binding a JSON type to a package causes a panic

Target manifest

  packages:
    package1:
      inputs:
        param1:
          key1: value1
          key2: value2

error logs

 ./wskdeploy
panic: runtime error: comparing uncomparable type map[string]interface {}

goroutine 1 [running]:
github.com/apache/openwhisk-wskdeploy/parsers.(*YAMLParser).composePackageInputs(0xc000309ea0, 0xc000337410, 0xc0003de750, 0xc000338140, 0x42, 0xc000318d80, 0x56, 0xc0003de8a0, 0x1ff0f50, 0xc000159378, ...)
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/parsers/manifest_parser.go:324 +0x679
github.com/apache/openwhisk-wskdeploy/parsers.(*YAMLParser).ComposePackage(0xc000309ea0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/parsers/manifest_parser.go:420 +0x455
github.com/apache/openwhisk-wskdeploy/parsers.(*YAMLParser).ComposeAllPackages(0xc000309ea0, 0xc000337410, 0xc000360fa0, 0xc000338140, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/parsers/manifest_parser.go:297 +0x298
github.com/apache/openwhisk-wskdeploy/deployers.(*ManifestReader).InitPackages(0xc0001599f8, 0xc000309ea0, 0xc000360fa0, 0x0, 0x0, 0x0, 0x0, 0x108, 0x108)
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/deployers/manifestreader.go:58 +0x96
github.com/apache/openwhisk-wskdeploy/deployers.(*ServiceDeployer).ConstructDeploymentPlan(0xc000364160, 0x25, 0x0)
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/deployers/servicedeployer.go:187 +0x3eb
github.com/apache/openwhisk-wskdeploy/cmd.Deploy(0x1880980, 0x0, 0x0)
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/cmd/root.go:257 +0x3b7
github.com/apache/openwhisk-wskdeploy/cmd.RootCmdImp(0x1880980, 0x18b79a0, 0x0, 0x0, 0x0, 0x0)
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/cmd/root.go:51 +0x2b
github.com/spf13/cobra.(*Command).execute(0x1880980, 0xc00001e1e0, 0x0, 0x0, 0x1880980, 0xc00001e1e0)
	/home/travis/gopath/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x47c
github.com/spf13/cobra.(*Command).ExecuteC(0x1880980, 0x1, 0x1, 0xc00001e1e0)
	/home/travis/gopath/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/home/travis/gopath/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/apache/openwhisk-wskdeploy/cmd.Execute()
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/cmd/root.go:65 +0xca
main.main()
	/home/travis/gopath/src/github.com/apache/openwhisk-wskdeploy/main.go:26 +0x25
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

1 participant