From f726a4b84de877b3261a7d4c459ba8943b366633 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Mon, 12 Jul 2021 11:53:20 +0200 Subject: [PATCH] cmd: added comment for input validation (per Andrea's pr comment) Signed-off-by: Sam Alba --- cmd/dagger/cmd/input/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/dagger/cmd/input/root.go b/cmd/dagger/cmd/input/root.go index c681db4e..8c32d613 100644 --- a/cmd/dagger/cmd/input/root.go +++ b/cmd/dagger/cmd/input/root.go @@ -44,6 +44,7 @@ func updateEnvironmentInput(ctx context.Context, cl *client.Client, target strin st.SetInput(target, input) _, err := cl.Do(ctx, st, func(ctx context.Context, env *environment.Environment, s solver.Solver) error { + // the inputs are set, check for cue errors by scanning all the inputs _, err := env.ScanInputs(ctx, true) if err != nil { return err