mach-composer / mach-composer-cli

MACH composer is an orchestration tool for modern MACH ecosystems, powered by Terraform infrastructure-as-code underneath.
https://docs.machcomposer.io
MIT License
48 stars 10 forks source link

parseComponentsNode: invalid memory address or nil pointer dereference #415

Closed demeyerthom closed 3 weeks ago

demeyerthom commented 3 months ago
aws-vault exec kato-tst-backoffice -- mach-composer apply -f tst.yaml
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x1030ab740]

goroutine 1 [running]:
github.com/mach-composer/mach-composer-cli/internal/config.parseComponentsNode(0x140008c6500, 0x140005b1590)
    /home/runner/work/mach-composer-cli/mach-composer-cli/internal/config/component.go:36 +0x270
github.com/mach-composer/mach-composer-cli/internal/config.resolveConfig({0x103b03890?, 0x1400045dbd0?}, 0x140005b1400)
    /home/runner/work/mach-composer-cli/mach-composer-cli/internal/config/parse.go:196 +0x25c
github.com/mach-composer/mach-composer-cli/internal/config.Open({0x103b03890, 0x1400045dbd0}, {0x16d6d325f, 0x8}, 0x1400083fb50)
    /home/runner/work/mach-composer-cli/mach-composer-cli/internal/config/parse.go:80 +0x1d8
github.com/mach-composer/mach-composer-cli/internal/cmd.loadConfig(0x1044af080, 0x0?)
    /home/runner/work/mach-composer-cli/mach-composer-cli/internal/cmd/common.go:97 +0x150
github.com/mach-composer/mach-composer-cli/internal/cmd.applyFunc(0x1044af080, {0x0?, 0x0?, 0x0?})
    /home/runner/work/mach-composer-cli/mach-composer-cli/internal/cmd/apply.go:49 +0x78
github.com/mach-composer/mach-composer-cli/internal/cmd.glob..func2(0x1044af080?, {0x140005c0360?, 0x4?, 0x10332d48c?})
    /home/runner/work/mach-composer-cli/mach-composer-cli/internal/cmd/apply.go:31 +0x20
github.com/spf13/cobra.(*Command).execute(0x1044af080, {0x140005c0340, 0x2, 0x2})
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983 +0x840
github.com/spf13/cobra.(*Command).ExecuteC(0x1044b01c0)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x344
github.com/spf13/cobra.(*Command).Execute(0x1043bdc68?)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039 +0x1c
main.main()
    /home/runner/work/mach-composer-cli/mach-composer-cli/main.go:11 +0x24
- name: servicebus
  source: ../components/Handlers/AzureServiceBus/terraform
  #version: "$LATEST"
  branch: main
  integrations:
    - aws