mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
pkg/compose: remove uses of ExecOptions.Detach
This field was added in [moby@5130fe5d38837302e], which added it for use as intermediate struct when parsing CLI flags (through `runconfig.ParseExec`) in [moby@c786a8ee5e9db8f5f]. Commit [moby@9d9dff3d0d9e92adf] rewrote the CLI to use Cobra, and as part of this introduced a separate `execOptions` type in `api/client/container`, however the ExecOptions.Detach field was still used as intermediate field to store the flag's value. Given that the client doesn't use this field, let's remove its use to prevent giving the impression that it's used anywhere. [moby@5130fe5d38837302e]:5130fe5d38[moby@c786a8ee5e9db8f5f]:c786a8ee5e[moby@9d9dff3d0d9e92adf]:9d9dff3d0dSigned-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
22e23bd4dc
commit
c97e40e2b8
1 changed files with 0 additions and 1 deletions
|
|
@ -48,7 +48,6 @@ func (s composeService) runHook(ctx context.Context, ctr container.Summary, serv
|
|||
Env: ToMobyEnv(hook.Environment),
|
||||
WorkingDir: hook.WorkingDir,
|
||||
Cmd: hook.Command,
|
||||
Detach: detached,
|
||||
AttachStdout: !detached,
|
||||
AttachStderr: !detached,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue