There is a "validation issue" (https://discord.com/channels/707636530424053791/796905486145683506/798725370219986966) that prevents any default value to be applied properly. Below an example with exec, but this is true for any other ``` package test #dagger: compute: [ { do: "fetch-container" ref: "busybox" }, { do: "exec" args: ["sh", "-c", """ echo \(host) > /tmp/out """] // dir: "/" }, ] ``` The output will be: ``` buildkit solve: task failed: #Script.1: empty disjunction: 7 related errors: #Script.1: field `dir` not allowed: ``` Expectation is that the optional "dir" can be omitted and would get the spec.cue default ("/").
Activity
shykes commentedon Jan 16, 2021
I will work on a patch for this.
Merge pull request #64 from blocklayerhq/cue-error-tests
Merge pull request #19 from mdn/dependabot/npm_and_yarn/hosted-git-in…
fix(core): Fix async panic on blocking #19
Merge pull request dagger#19 from dagger/aws-cdk-demo
Merge pull request dagger#19 from vikram-dagger/jnd-gs-5