Add global --experimental flag to gatekeep some features

This commit adds a global --experiemntal flag so we can start
gatekeeping some features where we know beforehand that the UX will very
likely change. It also refactors the current --platform flag to be
avaiable under this experimental flag for the moment

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
Marcos Lilljedahl
2022-04-06 13:34:43 -03:00
parent d80acf805b
commit 8969507db6
7 changed files with 19 additions and 12 deletions

View File

@@ -109,7 +109,8 @@ func (p *Plan) Action() *Action {
// configPlatform load the platform specified in the context
// Buildkit will then run every operation using that platform
// If platform is not define, context keep default platform
// FIXME: `platform` field temporarily disabled
// FIXME: `platform` field temporarily disabled until we decide the proper
// DX for multi-platform builds
// func (p *Plan) configPlatform() error {
// platformField := p.source.Lookup("platform")