diff --git a/cmd/dagger/cmd/doc.go b/cmd/dagger/cmd/doc.go index 33458255..c6c1eda6 100644 --- a/cmd/dagger/cmd/doc.go +++ b/cmd/dagger/cmd/doc.go @@ -333,7 +333,7 @@ func walkStdlib(ctx context.Context, output, format string) { if err != nil { return err } - if p == "." || !d.IsDir() { + if p == "." || !d.IsDir() || d.Name() == "cue.mod" { return nil } diff --git a/cue.mod/pkg/alpha.dagger.io b/cue.mod/pkg/alpha.dagger.io deleted file mode 120000 index 40a3fd9f..00000000 --- a/cue.mod/pkg/alpha.dagger.io +++ /dev/null @@ -1 +0,0 @@ -../../stdlib \ No newline at end of file diff --git a/stdlib/.dagger/env/sanity-check/plan/main.cue b/stdlib/.dagger/env/sanity-check/plan/main.cue index cf0de8ba..5d981a78 100644 --- a/stdlib/.dagger/env/sanity-check/plan/main.cue +++ b/stdlib/.dagger/env/sanity-check/plan/main.cue @@ -13,12 +13,12 @@ err: "" universe: dagger.#Input & dagger.#Artifact ctr: #CueCLI & { - vendor: "alpha.dagger.io": universe + ctx: universe command: """ ( find . -name '*.cue' -print0 | xargs -0iX dirname X | sort -u | { - while read -r dir; do + [ "$(basename $dir)" = "cue.mod" ] && continue echo "--- $dir" cue eval "$dir" >/dev/null done @@ -39,6 +39,7 @@ err: (os.#File & { #CueCLI: { command: string + ctx: dagger.#Artifact vendor: [name=string]: dagger.#Artifact ctr: os.#Container & { @@ -58,6 +59,7 @@ err: (os.#File & { rm -fr ./* """, ] + mount: "/ctx": from: ctx for name, dir in vendor { mount: "/ctx/cue.mod/pkg/\(name)": from: dir } diff --git a/stdlib/cue.mod/module.cue b/stdlib/cue.mod/module.cue new file mode 100644 index 00000000..45cdb689 --- /dev/null +++ b/stdlib/cue.mod/module.cue @@ -0,0 +1 @@ +module: "alpha.dagger.io"