From 2890209a1150ecdacedb6db9ef058cb1c5961e2c Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 27 Oct 2021 23:42:16 +0200 Subject: [PATCH] refactor: lexical order for build opts Signed-off-by: CrazyMax --- build/build.go | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/build/build.go b/build/build.go index a1449953..14fa421d 100644 --- a/build/build.go +++ b/build/build.go @@ -49,28 +49,25 @@ var ( ) type Options struct { - Inputs Inputs - Tags []string - Labels map[string]string + Inputs Inputs + + Allow []entitlements.Entitlement BuildArgs map[string]string - Pull bool - ImageIDFile string + CacheFrom []client.CacheOptionsEntry + CacheTo []client.CacheOptionsEntry + Exports []client.ExportEntry ExtraHosts []string + ImageIDFile string + Labels map[string]string NetworkMode string + NoCache bool + Platforms []specs.Platform + Pull bool + Session []session.Attachable ShmSize opts.MemBytes + Tags []string + Target string Ulimits *opts.UlimitOpt - - NoCache bool - Target string - Platforms []specs.Platform - Exports []client.ExportEntry - Session []session.Attachable - - CacheFrom []client.CacheOptionsEntry - CacheTo []client.CacheOptionsEntry - - Allow []entitlements.Entitlement - // DockerTarget } type Inputs struct {