You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2023. It is now read-only.
Well, we just broke layerform, just trying to run layeform list instances will result in a panic, trying to kill bar_instance will also fail because it will not find the definition.
The second configure command should just fail in this situation, telling the user that it can't update configuration because it is trying to remove a definition that has an instance currently running.
Reproducing the bug
configure-remove-definition-bug.mov
localexample:barexamples/local/layerform.jsonremoving layerbar:{ "layers": [ { "name": "foo", "files": ["foo.tf"] }, { "name" : "baz", "files": ["baz.tf"], "dependencies": ["foo"] } ] }configureagainWell, we just broke
layerform, just trying to runlayeform list instanceswill result in a panic, trying to killbar_instancewill also fail because it will not find the definition.Proposed solution
The second
configurecommand should just fail in this situation, telling the user that it can't update configuration because it is trying to remove adefinitionthat has aninstancecurrently running.