From 1a3dc3debc6a8317b7c6d6b9a6cfc5f5771556cb Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 31 Mar 2021 14:20:31 -0700 Subject: [PATCH] dagger spec: fix Artifact definition Signed-off-by: Andrea Luzzardi --- stdlib/dagger/dagger.cue | 9 +++++---- stdlib/docker/docker.cue | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/stdlib/dagger/dagger.cue b/stdlib/dagger/dagger.cue index af657d60..3758fbff 100644 --- a/stdlib/dagger/dagger.cue +++ b/stdlib/dagger/dagger.cue @@ -6,10 +6,11 @@ import ( // An artifact such as source code checkout, container image, binary archive... // May be passed as user input, or computed by a buildkit pipeline -#Artifact: #compute: [...llb.#Op] - -// deprecated, use #Artifact instead. -#Dir: #Artifact +#Artifact: { + #compute: [...llb.#Op] + _ + ... +} // Secret value // FIXME: currently aliased as a string to mark secrets diff --git a/stdlib/docker/docker.cue b/stdlib/docker/docker.cue index c7d68eb0..fee51bf6 100644 --- a/stdlib/docker/docker.cue +++ b/stdlib/docker/docker.cue @@ -9,7 +9,7 @@ import ( // Build a docker container image #Build: { - source: dagger.#Dir + source: dagger.#Artifact image: #compute: [ llb.#DockerBuild & {context: source},