Rename dagger.#Dir to dagger.#Artifact

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes 2021-03-13 06:29:37 +00:00
parent 3ce985b594
commit 6460a5c9fc
8 changed files with 15 additions and 12 deletions

View File

@ -13,7 +13,7 @@ import (
"dagger.io/docker" "dagger.io/docker"
) )
repository: dagger.#Dir repository: dagger.#Artifact
// Build `dagger` using Go // Build `dagger` using Go
build: go.#Build & { build: go.#Build & {

View File

@ -1,8 +1,11 @@
package dagger package dagger
// Any component can be referenced as a directory, since // An artifact such as source code checkout, container image, binary archive...
// every dagger script outputs a filesystem state (aka a directory) // May be passed as user input, or computed by a buildkit pipeline
#Dir: #compute: [...#Op] #Artifact: #compute: [...#Op]
// deprecated, use #Artifact instead.
#Dir: #Artifact
// Secret value // Secret value
// FIXME: currently aliased as a string to mark secrets // FIXME: currently aliased as a string to mark secrets

View File

@ -12,7 +12,7 @@ import (
args: [...string] args: [...string]
// Source Directory to build // Source Directory to build
source: dagger.#Dir source: dagger.#Artifact
// Environment variables // Environment variables
env: [string]: string env: [string]: string
@ -40,7 +40,7 @@ import (
version: *#Go.version | string version: *#Go.version | string
// Source Directory to build // Source Directory to build
source: dagger.#Dir source: dagger.#Artifact
// Packages to build // Packages to build
packages: *"." | string packages: *"." | string
@ -81,7 +81,7 @@ import (
version: *#Go.version | string version: *#Go.version | string
// Source Directory to build // Source Directory to build
source: dagger.#Dir source: dagger.#Artifact
// Packages to test // Packages to test
packages: *"." | string packages: *"." | string

View File

@ -21,7 +21,7 @@ import (
account: #Account account: #Account
// Contents of the application to deploy // Contents of the application to deploy
contents: dagger.#Dir contents: dagger.#Artifact
// Deploy to this Netlify site // Deploy to this Netlify site
name: string name: string

View File

@ -8,7 +8,7 @@ import (
// Yarn Script // Yarn Script
#Script: { #Script: {
// Source code of the javascript application // Source code of the javascript application
source: dagger.#Dir source: dagger.#Artifact
// Run this yarn script // Run this yarn script
run: string | *"build" run: string | *"build"

View File

@ -3,7 +3,7 @@ package test
import "dagger.io/dagger" import "dagger.io/dagger"
// Set to `--input-dir=./tests/dockerbuild/testdata` // Set to `--input-dir=./tests/dockerbuild/testdata`
TestData: dagger.#Dir TestData: dagger.#Artifact
TestInlinedDockerfile: #compute: [ TestInlinedDockerfile: #compute: [
dagger.#DockerBuild & { dagger.#DockerBuild & {

View File

@ -6,7 +6,7 @@ import (
"dagger.io/alpine" "dagger.io/alpine"
) )
TestData: dagger.#Dir TestData: dagger.#Artifact
TestGoBuild: { TestGoBuild: {
build: go.#Build & { build: go.#Build & {

View File

@ -6,7 +6,7 @@ import (
"dagger.io/alpine" "dagger.io/alpine"
) )
TestData: dagger.#Dir TestData: dagger.#Artifact
TestYarn: { TestYarn: {
run: yarn.#Script & { run: yarn.#Script & {