From 0b44243c65e0efb0b5b1cbd8cd52fc9dfae38e0f Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Fri, 30 Apr 2021 23:37:15 +0000 Subject: [PATCH] stdlib: fix bug in dagger.io/io.#File Signed-off-by: Solomon Hykes --- stdlib/io/io.cue | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/stdlib/io/io.cue b/stdlib/io/io.cue index 26389fd6..c057eb60 100644 --- a/stdlib/io/io.cue +++ b/stdlib/io/io.cue @@ -8,18 +8,13 @@ import ( #File: { from: dagger.#Artifact path: string - read: *null | { - format: op.#Export.format + read: { + format: "string" | "json" | "yaml" | "lines" data: { - _ + string #up: [ - op.#Load & { - "from": from - }, - op.#Export & { - source: path - "format": format - }, + op.#Load & {"from": from}, + op.#Export & {source: path, "format": format}, ] } }