clean up comments

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-05-21 16:56:30 -07:00
parent 57a168e6b5
commit 7484df45cd
2 changed files with 2 additions and 1 deletions

View File

@ -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
}
}

View File

@ -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]