-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
- Executing a launchr command outside of a directory with actions sometimes fails with a golang error:
➜ Sources launchr update
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x935b23]
goroutine 1 [running]:
github.com/launchrctl/launchr/pkg/action.ConvertInputToTplVars({0x0, 0x0, {0x0, 0x0}, {0x0, 0x0, 0x0}}, 0x0)
github.com/launchrctl/launchr@v0.12.0/pkg/action/loader.go:136 +0xa3
github.com/launchrctl/launchr/pkg/action.inputProcessor.Process({}, {0x93f473?}, {0xc0002bc840, 0x2a3, 0x2c0})
github.com/launchrctl/launchr@v0.12.0/pkg/action/loader.go:87 +0xeb
github.com/launchrctl/launchr/pkg/action.(*pipeProcessor).Process(0x2de?, {0x0?}, {0xc00021a600?, 0xc000013980?, 0xc000013978?})
github.com/launchrctl/launchr@v0.12.0/pkg/action/loader.go:46 +0x5e
github.com/launchrctl/launchr/pkg/action.(*yamlFileLoader).Load(0xc0004a2000, {0xc0000ec790?})
github.com/launchrctl/launchr@v0.12.0/pkg/action/yaml.discovery.go:92 +0x7d
github.com/launchrctl/launchr/pkg/action.(*Action).EnsureLoaded(...)
github.com/launchrctl/launchr@v0.12.0/pkg/action/action.go:126
github.com/launchrctl/launchr.(*appImpl).init(0xc0003c0210)
github.com/launchrctl/launchr@v0.12.0/app.go:213 +0x862
github.com/launchrctl/launchr.(*appImpl).Execute(0xc0003c0210)
github.com/launchrctl/launchr@v0.12.0/app.go:306 +0x1c
github.com/launchrctl/launchr.Run(...)
github.com/launchrctl/launchr@v0.12.0/app.go:330
main.main()
launchr/main.go:28 +0x54
- In project dir it works fine, but if call if from different dir like /home it fails
Expected
- Executing a launchr command anywhere should not throw an error
Metadata
Metadata
Assignees
Labels
No labels