diff --git a/Sources/Container-Compose/Commands/ComposeBuild.swift b/Sources/Container-Compose/Commands/ComposeBuild.swift index 39fc8ab..737a201 100644 --- a/Sources/Container-Compose/Commands/ComposeBuild.swift +++ b/Sources/Container-Compose/Commands/ComposeBuild.swift @@ -157,7 +157,7 @@ public struct ComposeBuild: AsyncParsableCommand, @unchecked Sendable { print("\n----------------------------------------") print("Building \(serviceName) -> \(imageTag)") - let buildCommand = try Application.BuildCommand.parse(commands + logging.passThroughCommands()) + var buildCommand = try Application.BuildCommand.parse(commands + logging.passThroughCommands()) try buildCommand.validate() try await buildCommand.run() print("Built \(serviceName) successfully.")