From c32330b477b13b3306208c69f7c943fe7cb8c89b Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Thu, 28 Sep 2023 20:32:45 -0700 Subject: [PATCH] fix: doMountJob needs to dock first --- packages/cli/lib/behavior/jobs/mount_job.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/cli/lib/behavior/jobs/mount_job.dart b/packages/cli/lib/behavior/jobs/mount_job.dart index 06c7a0a6..3ea8cd25 100644 --- a/packages/cli/lib/behavior/jobs/mount_job.dart +++ b/packages/cli/lib/behavior/jobs/mount_job.dart @@ -43,6 +43,9 @@ Future doMountJob( return JobResult.wait(waitUntil); } + // We must be docked at the shipyard to mount. + await dockIfNeeded(api, caches.ships, ship); + // TODO(eseidel): This should only remove mounts if we absolutely need to. // This could end up removing mounts before we need to. final toRemove = mountsToRemoveFromShip(ship, template);