Closed mattstein closed 3 years ago
FWIW I’ve just realized this is also true for nitro container remove
.
Note to future self: update this article when the fix for the issue is released.
@mattstein just fixed this in https://github.com/craftcms/nitro/commit/a086070219a2dae5904a06a8618486d1e7963bc2
Any command that called apply
after would have been impacted.
Built locally and confirm joy with nitro container remove
. 👍
Released with v2.0.8.
Description
After running
nitro remove
you have to run apply again to see the container removed even in you answerY
forApply changes now [Y/n]?
.Notice the (just-added)
Removing test.nitro
here:Yet the apply output doesn’t include a
Cleaning up...
step that removes the container. It’s still there:But running
apply
again does what you’d expect:I would expect behavior consistent with
nitro add
, where if you’ve chosen toApply changes now
the container would be cleaned up + removed immediately. It seems unintuitive that you’d have to runapply
again to achieve the desired effect.Steps to reproduce
nitro remove
and choose a valid site to remove.Y
(or accept default) toApply changes now
.nitro.yaml
, but its container is still running and chainedapply
command output did not include cleanup step.nitro apply
and observe that container is removed and included in cleanup step output.Additional info