diff --git a/dagger/inputs_scan.go b/dagger/inputs_scan.go index 50edfa7f..a76f54a1 100644 --- a/dagger/inputs_scan.go +++ b/dagger/inputs_scan.go @@ -11,11 +11,13 @@ func isReference(val *compiler.Value) bool { _, ref := val.ReferencePath() if ref.String() == "" || val.Path().String() == ref.String() { + // not a reference return false } for _, s := range ref.Selectors() { if s.IsDefinition() { + // if we reference to a definition, we skip the check return false } } diff --git a/stdlib/dagger/dagger.cue b/stdlib/dagger/dagger.cue index ff67e740..3f9bcdd2 100644 --- a/stdlib/dagger/dagger.cue +++ b/stdlib/dagger/dagger.cue @@ -7,7 +7,6 @@ import ( // An artifact such as source code checkout, container image, binary archive... // May be passed as user input, or computed by a buildkit pipeline -// FIXME (perf). See https://github.com/dagger/dagger/issues/445 #Artifact: { @dagger(artifact) #up: [...op.#Op]