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

@@ -85,7 +85,6 @@ func (s *Solver) AddCredentials(target, username, secret string) {
}
func (s *Solver) Marshal(ctx context.Context, st llb.State, co ...llb.ConstraintsOpt) (*bkpb.Definition, error) {
// FIXME: do not hardcode the platform
def, err := st.Marshal(ctx, co...)
if err != nil {
return nil, err