Skip to content

#Copy marks src as optional, but it is not, and should default to the schema default #9

Closed

Description

@dubo-dubon-duponey

With this

		dagger.#Copy & {
			from: [
				dagger.#FetchContainer & { ref: alpine.ref },
			]
			dest: "/src"
		},

Dagger will complain that src is not specified.

The dagger.cue schema specifies

#Copy: {
	do:    "copy"
	from:  #Script | #Component
	src?:  string | *"/"
	dest?: string | *"/"
}

Maybe it should rather be?

#Copy: {
	do:    "copy"
	from:  #Script | #Component
	src:  string | *"/"
	dest: string | *"/"
}

Activity

  1. added a commit that references this issue on Jan 12, 2021
    1d2d3db
  2. added 2 commits that reference this issue on Sep 18, 2023
  3. added a commit that references this issue on Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions