Skip to content

Nested docker.#Build fails #1466

@aluzzardi

Description

@aluzzardi

When using docker.#Build as a step within another docker.#Build, dagger throws CUE errors.

I've narrowed it down to builds containing multiple steps:

_build: docker.#Build & {
	steps: [
		docker.#Build & {
			steps: [
				docker.#Pull & {
					source: "alpine"
				},
				// FIXME: the following breaks with:
				// actions.deploy._build._dag."0".output: 1 errors in empty disjunction::
				//    pkg/universe.dagger.io/docker/build.cue:26:11
				docker.#Run & {
					cmd: name: "ls"
				},
			]
		},
		docker.#Run & {
			cmd: name: "ls"
		},
	]
}

/cc @shykes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions