mirror of https://github.com/docker/compose.git
Apply platform before hashing
Signed-off-by: Matthew Walowski <mattwalowski@gmail.com>
This commit is contained in:
parent
4f694919ff
commit
8967df7a91
|
@ -186,6 +186,10 @@ func runHash(ctx context.Context, dockerCli command.Cli, opts configOptions) err
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := applyPlatforms(project, true); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if len(services) > 0 {
|
if len(services) > 0 {
|
||||||
err = project.ForServices(services, types.IgnoreDependencies)
|
err = project.ForServices(services, types.IgnoreDependencies)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue