clean up comments
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
57a168e6b5
commit
7484df45cd
@ -11,11 +11,13 @@ func isReference(val *compiler.Value) bool {
|
|||||||
_, ref := val.ReferencePath()
|
_, ref := val.ReferencePath()
|
||||||
|
|
||||||
if ref.String() == "" || val.Path().String() == ref.String() {
|
if ref.String() == "" || val.Path().String() == ref.String() {
|
||||||
|
// not a reference
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, s := range ref.Selectors() {
|
for _, s := range ref.Selectors() {
|
||||||
if s.IsDefinition() {
|
if s.IsDefinition() {
|
||||||
|
// if we reference to a definition, we skip the check
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@ import (
|
|||||||
// An artifact such as source code checkout, container image, binary archive...
|
// An artifact such as source code checkout, container image, binary archive...
|
||||||
// May be passed as user input, or computed by a buildkit pipeline
|
// May be passed as user input, or computed by a buildkit pipeline
|
||||||
|
|
||||||
// FIXME (perf). See https://github.com/dagger/dagger/issues/445
|
|
||||||
#Artifact: {
|
#Artifact: {
|
||||||
@dagger(artifact)
|
@dagger(artifact)
|
||||||
#up: [...op.#Op]
|
#up: [...op.#Op]
|
||||||
|
Reference in New Issue
Block a user