Merge pull request #557 from shykes/stdlib-cleanup

Universe: cleanup
This commit is contained in:
Andrea Luzzardi 2021-06-03 11:27:18 -07:00 committed by GitHub
commit b805d37cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 16 deletions

View File

@ -1,18 +1,16 @@
package docker
import (
"dagger.io/dagger/op"
"dagger.io/alpine"
)
#Client: #up: [
op.#Load & {
from: alpine.#Image & {
package: bash: true
package: jq: true
package: curl: true
package: "openssh-client": true
package: "docker-cli": true
}
},
]
// A container image to run the Docker client
#Client: alpine.#Image & {
package: {
bash: true
jq: true
curl: true
"openssh-client": true
"docker-cli": true
}
}

View File

@ -1,3 +1,4 @@
// DEPRECATED: see dagger.io/os
package file
import (

View File

@ -9,16 +9,23 @@ import (
// A git repository
#Repository: {
remote: string @dagger(input)
ref: string @dagger(input)
subdir: string | *"" @dagger(input)
// Git remote.
// Example: "https://github.com/dagger/dagger")
remote: string @dagger(input)
// Git ref: can be a commit, tag or branch.
// Example: "main"
ref: string @dagger(input)
// (optional) Subdirectory
subdir: string | *null @dagger(input)
#up: [
op.#FetchGit & {
"remote": remote
"ref": ref
},
if subdir != "" {
if subdir != null {
op.#Subdir & {
dir: subdir
}