stdlib: move all imports to alpha.dagger.io

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes 2021-06-23 14:31:42 +00:00
parent aa6335246b
commit d7a805f42b
168 changed files with 412 additions and 312 deletions

View File

@ -2,9 +2,9 @@
package main package main
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/os" "alpha.dagger.io/os"
"dagger.io/go" "alpha.dagger.io/go"
) )
// Dagger source code // Dagger source code

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/js/yarn" "alpha.dagger.io/js/yarn"
"dagger.io/netlify" "alpha.dagger.io/netlify"
) )
// dagger repository // dagger repository

View File

@ -1,7 +1,7 @@
package testcore package testcore
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
) )
name: dagger.#Input & { name: dagger.#Input & {

View File

@ -337,7 +337,7 @@ func walkStdlib(ctx context.Context, output, format string) {
return nil return nil
} }
pkgName := fmt.Sprintf("dagger.io/%s", p) pkgName := fmt.Sprintf("alpha.dagger.io/%s", p)
lg.Info().Str("package", pkgName).Str("format", format).Msg("generating doc") lg.Info().Str("package", pkgName).Str("format", format).Msg("generating doc")
val, err := loadCode(pkgName) val, err := loadCode(pkgName)
if err != nil { if err != nil {

View File

@ -136,7 +136,7 @@ Let's write the corresponding Cue code to a new file in our package:
package multibucket package multibucket
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
) )
// Source code of the sample application // Source code of the sample application
@ -153,7 +153,7 @@ The second component of our plan is the Yarn package built from the app source c
package multibucket package multibucket
import ( import (
"dagger.io/js/yarn" "alpha.dagger.io/js/yarn"
) )
// Build the source code using Yarn // Build the source code using Yarn
@ -165,7 +165,7 @@ app: yarn.#Package & {
Let's break it down: Let's break it down:
- `package multibucket`: this file is part of the multibucket package - `package multibucket`: this file is part of the multibucket package
- `import ( "dagger.io/js/yarn" )`: import a package from the [Dagger Universe](../reference/universe/README.md). - `import ( "alpha.dagger.io/js/yarn" )`: import a package from the [Dagger Universe](../reference/universe/README.md).
- `app: yarn.#Package`: apply the `#Package` definition at the key `app` - `app: yarn.#Package`: apply the `#Package` definition at the key `app`
- `&`: also merge the following values at the same key... - `&`: also merge the following values at the same key...
- `{ source: src }`: set the key `app.source` to the value of `src`. This connects our 2 components, forming the first link in our DAG. - `{ source: src }`: set the key `app.source` to the value of `src`. This connects our 2 components, forming the first link in our DAG.
@ -182,7 +182,7 @@ The third component of our plan is the Netlify site to which the app will be dep
package multibucket package multibucket
import ( import (
"dagger.io/netlify" "alpha.dagger.io/netlify"
) )
// Netlify site // Netlify site

View File

@ -164,7 +164,7 @@ values={[
package kube package kube
import ( import (
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
) )
// input: ~/.kube/config file used for deployment // input: ~/.kube/config file used for deployment
@ -190,8 +190,8 @@ deploy: kubernetes.#Resources & {
package kube package kube
import ( import (
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
"dagger.io/gcp/gke" "alpha.dagger.io/gcp/gke"
) )
// gkeConfig used for deployment // gkeConfig used for deployment
@ -218,8 +218,8 @@ deploy: kubernetes.#Resources & {
package kube package kube
import ( import (
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
"dagger.io/aws/eks" "alpha.dagger.io/aws/eks"
) )
// eksConfig used for deployment // eksConfig used for deployment
@ -587,8 +587,8 @@ package kube
import ( import (
"encoding/yaml" "encoding/yaml"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/docker" "alpha.dagger.io/docker"
) )
// input: source code repository, must contain a Dockerfile // input: source code repository, must contain a Dockerfile

View File

@ -168,7 +168,7 @@ Let's implement the first step, use the `aws.#Config` relay, and request its fir
package cloudformation package cloudformation
import ( import (
"dagger.io/aws" "alpha.dagger.io/aws"
) )
// AWS account: credentials and region // AWS account: credentials and region
@ -226,10 +226,10 @@ Now that we have the `config` definition properly configured, let's modify the C
package cloudformation package cloudformation
import ( import (
"dagger.io/aws" "alpha.dagger.io/aws"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/random" "alpha.dagger.io/random"
"dagger.io/aws/cloudformation" "alpha.dagger.io/aws/cloudformation"
) )
// AWS account: credentials and region // AWS account: credentials and region

View File

@ -2,12 +2,12 @@
sidebar_label: alpine sidebar_label: alpine
--- ---
# dagger.io/alpine # alpha.dagger.io/alpine
Base package for Alpine Linux Base package for Alpine Linux
```cue ```cue
import "dagger.io/alpine" import "alpha.dagger.io/alpine"
``` ```
## alpine.#Image ## alpine.#Image

View File

@ -2,12 +2,12 @@
sidebar_label: aws sidebar_label: aws
--- ---
# dagger.io/aws # alpha.dagger.io/aws
AWS base package AWS base package
```cue ```cue
import "dagger.io/aws" import "alpha.dagger.io/aws"
``` ```
## aws.#CLI ## aws.#CLI

View File

@ -2,12 +2,12 @@
sidebar_label: cloudformation sidebar_label: cloudformation
--- ---
# dagger.io/aws/cloudformation # alpha.dagger.io/aws/cloudformation
AWS CloudFormation AWS CloudFormation
```cue ```cue
import "dagger.io/aws/cloudformation" import "alpha.dagger.io/aws/cloudformation"
``` ```
## cloudformation.#Stack ## cloudformation.#Stack

View File

@ -2,12 +2,12 @@
sidebar_label: ecr sidebar_label: ecr
--- ---
# dagger.io/aws/ecr # alpha.dagger.io/aws/ecr
Amazon Elastic Container Registry (ECR) Amazon Elastic Container Registry (ECR)
```cue ```cue
import "dagger.io/aws/ecr" import "alpha.dagger.io/aws/ecr"
``` ```
## ecr.#Credentials ## ecr.#Credentials

View File

@ -2,10 +2,10 @@
sidebar_label: ecs sidebar_label: ecs
--- ---
# dagger.io/aws/ecs # alpha.dagger.io/aws/ecs
AWS Elastic Container Service (ECS) AWS Elastic Container Service (ECS)
```cue ```cue
import "dagger.io/aws/ecs" import "alpha.dagger.io/aws/ecs"
``` ```

View File

@ -2,12 +2,12 @@
sidebar_label: eks sidebar_label: eks
--- ---
# dagger.io/aws/eks # alpha.dagger.io/aws/eks
AWS Elastic Kubernetes Service (EKS) AWS Elastic Kubernetes Service (EKS)
```cue ```cue
import "dagger.io/aws/eks" import "alpha.dagger.io/aws/eks"
``` ```
## eks.#KubeConfig ## eks.#KubeConfig

View File

@ -2,12 +2,12 @@
sidebar_label: elb sidebar_label: elb
--- ---
# dagger.io/aws/elb # alpha.dagger.io/aws/elb
AWS Elastic Load Balancer (ELBv2) AWS Elastic Load Balancer (ELBv2)
```cue ```cue
import "dagger.io/aws/elb" import "alpha.dagger.io/aws/elb"
``` ```
## elb.#RandomRulePriority ## elb.#RandomRulePriority

View File

@ -2,12 +2,12 @@
sidebar_label: rds sidebar_label: rds
--- ---
# dagger.io/aws/rds # alpha.dagger.io/aws/rds
AWS Relational Database Service (RDS) AWS Relational Database Service (RDS)
```cue ```cue
import "dagger.io/aws/rds" import "alpha.dagger.io/aws/rds"
``` ```
## rds.#Database ## rds.#Database

View File

@ -2,12 +2,12 @@
sidebar_label: s3 sidebar_label: s3
--- ---
# dagger.io/aws/s3 # alpha.dagger.io/aws/s3
AWS Simple Storage Service AWS Simple Storage Service
```cue ```cue
import "dagger.io/aws/s3" import "alpha.dagger.io/aws/s3"
``` ```
## s3.#Object ## s3.#Object

View File

@ -2,12 +2,12 @@
sidebar_label: dagger sidebar_label: dagger
--- ---
# dagger.io/dagger # alpha.dagger.io/dagger
Dagger core types Dagger core types
```cue ```cue
import "dagger.io/dagger" import "alpha.dagger.io/dagger"
``` ```
## dagger.#Secret ## dagger.#Secret

View File

@ -2,12 +2,12 @@
sidebar_label: op sidebar_label: op
--- ---
# dagger.io/dagger/op # alpha.dagger.io/dagger/op
op: low-level operations for Dagger processing pipelines op: low-level operations for Dagger processing pipelines
```cue ```cue
import "dagger.io/dagger/op" import "alpha.dagger.io/dagger/op"
``` ```
## op.#Copy ## op.#Copy

View File

@ -2,12 +2,12 @@
sidebar_label: docker sidebar_label: docker
--- ---
# dagger.io/docker # alpha.dagger.io/docker
Docker container operations Docker container operations
```cue ```cue
import "dagger.io/docker" import "alpha.dagger.io/docker"
``` ```
## docker.#Build ## docker.#Build

View File

@ -2,12 +2,12 @@
sidebar_label: gcp sidebar_label: gcp
--- ---
# dagger.io/gcp # alpha.dagger.io/gcp
Google Cloud Platform Google Cloud Platform
```cue ```cue
import "dagger.io/gcp" import "alpha.dagger.io/gcp"
``` ```
## gcp.#Config ## gcp.#Config

View File

@ -2,12 +2,12 @@
sidebar_label: gcr sidebar_label: gcr
--- ---
# dagger.io/gcp/gcr # alpha.dagger.io/gcp/gcr
Google Container Registry Google Container Registry
```cue ```cue
import "dagger.io/gcp/gcr" import "alpha.dagger.io/gcp/gcr"
``` ```
## gcr.#Credentials ## gcr.#Credentials

View File

@ -2,12 +2,12 @@
sidebar_label: gke sidebar_label: gke
--- ---
# dagger.io/gcp/gke # alpha.dagger.io/gcp/gke
Google Kubernetes Engine Google Kubernetes Engine
```cue ```cue
import "dagger.io/gcp/gke" import "alpha.dagger.io/gcp/gke"
``` ```
## gke.#KubeConfig ## gke.#KubeConfig

View File

@ -2,12 +2,12 @@
sidebar_label: git sidebar_label: git
--- ---
# dagger.io/git # alpha.dagger.io/git
Git operations Git operations
```cue ```cue
import "dagger.io/git" import "alpha.dagger.io/git"
``` ```
## git.#CurrentBranch ## git.#CurrentBranch

View File

@ -2,12 +2,12 @@
sidebar_label: go sidebar_label: go
--- ---
# dagger.io/go # alpha.dagger.io/go
Go build operations Go build operations
```cue ```cue
import "dagger.io/go" import "alpha.dagger.io/go"
``` ```
## go.#Build ## go.#Build

View File

@ -2,12 +2,12 @@
sidebar_label: io sidebar_label: io
--- ---
# dagger.io/io # alpha.dagger.io/io
IO operations IO operations
```cue ```cue
import "dagger.io/io" import "alpha.dagger.io/io"
``` ```
## io.#Dir ## io.#Dir

View File

@ -2,12 +2,12 @@
sidebar_label: yarn sidebar_label: yarn
--- ---
# dagger.io/js/yarn # alpha.dagger.io/js/yarn
Yarn is a package manager for Javascript applications Yarn is a package manager for Javascript applications
```cue ```cue
import "dagger.io/js/yarn" import "alpha.dagger.io/js/yarn"
``` ```
## yarn.#Package ## yarn.#Package

View File

@ -2,12 +2,12 @@
sidebar_label: kubernetes sidebar_label: kubernetes
--- ---
# dagger.io/kubernetes # alpha.dagger.io/kubernetes
Kubernetes client operations Kubernetes client operations
```cue ```cue
import "dagger.io/kubernetes" import "alpha.dagger.io/kubernetes"
``` ```
## kubernetes.#Kubectl ## kubernetes.#Kubectl

View File

@ -2,12 +2,12 @@
sidebar_label: helm sidebar_label: helm
--- ---
# dagger.io/kubernetes/helm # alpha.dagger.io/kubernetes/helm
Helm package manager Helm package manager
```cue ```cue
import "dagger.io/kubernetes/helm" import "alpha.dagger.io/kubernetes/helm"
``` ```
## helm.#Chart ## helm.#Chart

View File

@ -2,12 +2,12 @@
sidebar_label: kustomize sidebar_label: kustomize
--- ---
# dagger.io/kubernetes/kustomize # alpha.dagger.io/kubernetes/kustomize
Kustomize config management Kustomize config management
```cue ```cue
import "dagger.io/kubernetes/kustomize" import "alpha.dagger.io/kubernetes/kustomize"
``` ```
## kustomize.#Kustomization ## kustomize.#Kustomization

View File

@ -2,12 +2,12 @@
sidebar_label: netlify sidebar_label: netlify
--- ---
# dagger.io/netlify # alpha.dagger.io/netlify
Netlify client operations Netlify client operations
```cue ```cue
import "dagger.io/netlify" import "alpha.dagger.io/netlify"
``` ```
## netlify.#Account ## netlify.#Account

View File

@ -2,12 +2,12 @@
sidebar_label: os sidebar_label: os
--- ---
# dagger.io/os # alpha.dagger.io/os
OS operations OS operations
```cue ```cue
import "dagger.io/os" import "alpha.dagger.io/os"
``` ```
## os.#Container ## os.#Container

View File

@ -2,12 +2,12 @@
sidebar_label: random sidebar_label: random
--- ---
# dagger.io/random # alpha.dagger.io/random
Random generation utilities Random generation utilities
```cue ```cue
import "dagger.io/random" import "alpha.dagger.io/random"
``` ```
## random.#String ## random.#String

View File

@ -2,12 +2,12 @@
sidebar_label: terraform sidebar_label: terraform
--- ---
# dagger.io/terraform # alpha.dagger.io/terraform
Terraform operations Terraform operations
```cue ```cue
import "dagger.io/terraform" import "alpha.dagger.io/terraform"
``` ```
## terraform.#Configuration ## terraform.#Configuration

View File

@ -1,8 +1,8 @@
package alpine package alpine
import ( import (
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
TestImageVersion: { TestImageVersion: {

View File

@ -1,10 +1,10 @@
package main package main
import ( import (
"dagger.io/aws" "alpha.dagger.io/aws"
"dagger.io/aws/ecr" "alpha.dagger.io/aws/ecr"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/random" "alpha.dagger.io/random"
) )
TestConfig: awsConfig: aws.#Config & { TestConfig: awsConfig: aws.#Config & {

View File

@ -1,10 +1,10 @@
package eks package eks
import ( import (
"dagger.io/aws" "alpha.dagger.io/aws"
"dagger.io/aws/eks" "alpha.dagger.io/aws/eks"
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
TestConfig: awsConfig: aws.#Config & { TestConfig: awsConfig: aws.#Config & {

View File

@ -1,9 +1,9 @@
package s3 package s3
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/aws" "alpha.dagger.io/aws"
"dagger.io/aws/s3" "alpha.dagger.io/aws/s3"
) )
TestConfig: awsConfig: aws.#Config & { TestConfig: awsConfig: aws.#Config & {

View File

@ -1,9 +1,9 @@
package s3 package s3
import ( import (
"dagger.io/aws" "alpha.dagger.io/aws"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
#List: { #List: {

View File

@ -1,9 +1,9 @@
package docker package docker
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/docker" "alpha.dagger.io/docker"
) )
TestSourceBuild: dagger.#Artifact @dagger(input) TestSourceBuild: dagger.#Artifact @dagger(input)

View File

@ -1,8 +1,8 @@
package docker package docker
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/docker" "alpha.dagger.io/docker"
) )
TestConfig: { TestConfig: {

View File

@ -1,8 +1,8 @@
package docker package docker
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/docker" "alpha.dagger.io/docker"
) )
TestConfig: { TestConfig: {

View File

@ -1,8 +1,8 @@
package docker package docker
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/docker" "alpha.dagger.io/docker"
) )
TestConfig: { TestConfig: {

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"dagger.io/docker" "alpha.dagger.io/docker"
"dagger.io/random" "alpha.dagger.io/random"
) )
suffix: random.#String & { suffix: random.#String & {

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"dagger.io/docker" "alpha.dagger.io/docker"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/random" "alpha.dagger.io/random"
) )
TestConfig: { TestConfig: {

View File

@ -3,10 +3,10 @@ package git
import ( import (
"strings" "strings"
"dagger.io/git" "alpha.dagger.io/git"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/os" "alpha.dagger.io/os"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
repo: git.#Repository & { repo: git.#Repository & {

View File

@ -1,10 +1,10 @@
package go package go
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/go" "alpha.dagger.io/go"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
TestData: dagger.#Artifact @dagger(input) TestData: dagger.#Artifact @dagger(input)

View File

@ -1,10 +1,10 @@
package main package main
import ( import (
"dagger.io/gcp" "alpha.dagger.io/gcp"
"dagger.io/gcp/gcr" "alpha.dagger.io/gcp/gcr"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/random" "alpha.dagger.io/random"
) )
TestConfig: gcpConfig: gcp.#Config TestConfig: gcpConfig: gcp.#Config

View File

@ -1,10 +1,10 @@
package gke package gke
import ( import (
"dagger.io/gcp" "alpha.dagger.io/gcp"
"dagger.io/gcp/gke" "alpha.dagger.io/gcp/gke"
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
TestConfig: gcpConfig: gcp.#Config TestConfig: gcpConfig: gcp.#Config

View File

@ -1,10 +1,10 @@
package react package react
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/js/yarn" "alpha.dagger.io/js/yarn"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/os" "alpha.dagger.io/os"
) )
TestData: dagger.#Artifact TestData: dagger.#Artifact

View File

@ -2,8 +2,8 @@ package main
import ( import (
"encoding/yaml" "encoding/yaml"
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
"dagger.io/random" "alpha.dagger.io/random"
) )
// We assume that a kinD cluster is running locally // We assume that a kinD cluster is running locally

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
) )
#VerifyApply: { #VerifyApply: {

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"dagger.io/kubernetes/helm" "alpha.dagger.io/kubernetes/helm"
"dagger.io/random" "alpha.dagger.io/random"
"dagger.io/dagger" "alpha.dagger.io/dagger"
) )
// We assume that a kinD cluster is running locally // We assume that a kinD cluster is running locally

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
) )
#VerifyHelm: { #VerifyHelm: {

View File

@ -2,8 +2,8 @@ package main
import ( import (
"encoding/yaml" "encoding/yaml"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/kubernetes/kustomize" "alpha.dagger.io/kubernetes/kustomize"
) )
TestKustomize: { TestKustomize: {

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/alpine" "alpha.dagger.io/alpine"
) )
#VerifyKustomize: { #VerifyKustomize: {

View File

@ -1,10 +1,10 @@
package main package main
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/netlify" "alpha.dagger.io/netlify"
"dagger.io/random" "alpha.dagger.io/random"
) )
TestNetlify: { TestNetlify: {

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/os" "alpha.dagger.io/os"
) )
// Test secret mount // Test secret mount

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"dagger.io/os" "alpha.dagger.io/os"
"dagger.io/alpine" "alpha.dagger.io/alpine"
) )
// Write a file to an empty dir // Write a file to an empty dir

View File

@ -0,0 +1,2 @@
# dagger state
state/**

View File

@ -0,0 +1,67 @@
package main
import (
"alpha.dagger.io/dagger"
"alpha.dagger.io/os"
"alpha.dagger.io/alpine"
)
// Assert that there are no errors
err: ""
// Directory containing universe packages (./universe/ in dagger repo)
universe: dagger.#Input & dagger.#Artifact
ctr: #CueCLI & {
vendor: "alpha.dagger.io": universe
command: """
(
find . -name '*.cue' -print0 | xargs -0iX dirname X | sort -u | {
while read -r dir; do
echo "--- $dir"
cue eval "$dir" >/dev/null
done
} > /out 2>/err
) || true
"""
}
result: (os.#File & {
from: ctr.ctr
path: "/out"
}).contents @dagger(output)
err: (os.#File & {
from: ctr.ctr
path: "/err"
}).contents @dagger(output)
#CueCLI: {
command: string
vendor: [name=string]: dagger.#Artifact
ctr: os.#Container & {
image: alpine.#Image & {
package: {
curl: true
tar: true
}
}
setup: [
"""
set -e
cd $(mktemp -d)
curl -L https://github.com/cuelang/cue/releases/download/v0.4.0/cue_v0.4.0_linux_amd64.tar.gz -o cue.tgz
tar zxvf cue.tgz
cp cue /usr/local/bin/cue
rm -fr ./*
""",
]
for name, dir in vendor {
mount: "/ctx/cue.mod/pkg/\(name)": from: dir
}
dir: "/ctx"
"command": command
}
}

View File

@ -0,0 +1,27 @@
plan:
module: .dagger/env/sanity-check/plan
name: sanity-check
inputs:
universe:
dir:
path: .
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age1gxwmtwahzwdmrskhf90ppwlnze30lgpm056kuesrxzeuyclrwvpsupwtpk
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBtMjhYeVhscGxYWVg1RHZ2
bjlWcnFuQ1hvVGVvZGRDYUlpeWpYYUZnWW5nCndObmdoSkpZZXI4MytwNUtsMkwr
ZkY4a01iN1dSL05KaGExSk0rWFpjNzQKLS0tIGF0eVRXalloUERaU2lhZ2gwcG1G
RE1BR1ZvSlpRWnpZVERFQlB5ckhPYk0KMm8XjFKgcjWaXh9F542NXyv9dBZQdZJC
rn5YittfEOwRkrlqBCVwPtU+nhE5oDxnt9a0n8JMUgvB0Nnd6tgP+A==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2021-06-24T15:27:51Z"
mac: ENC[AES256_GCM,data:SDJPXr1NjGSOcHMLmKrzJ9XkFjfXOg7g5pdgXS3fQ4sSALVBqhHSfHJnH2m4NVSJPyOd35ia2/BivTWTGw1oguovLSfSvlptPUDqbwsXQoB2NEFcAJ6eJeDyz8Bx98OrBliyJaVOVYzF4y5dWwW2BGuevW097PbY/Sv3p6x8fyY=,iv:IftNBSOvEn3nGRQlD47At8pvundsXdk68yz+cWct/tU=,tag:XUPxsP39xSjPgvIZNBV09w==,type:str]
pgp: []
encrypted_suffix: secret
version: 3.7.1

View File

@ -1,10 +1,10 @@
package terraform package terraform
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/terraform" "alpha.dagger.io/terraform"
) )
TestData: dagger.#Artifact @dagger(input) TestData: dagger.#Artifact @dagger(input)

View File

@ -2,7 +2,7 @@
package alpine package alpine
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
// Default Alpine version // Default Alpine version

View File

@ -2,9 +2,9 @@
package aws package aws
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/alpine" "alpha.dagger.io/alpine"
) )
// AWS Config shared by all AWS packages // AWS Config shared by all AWS packages

View File

@ -4,8 +4,8 @@ package cloudformation
import ( import (
"encoding/json" "encoding/json"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/aws" "alpha.dagger.io/aws"
) )
// AWS CloudFormation Stack // AWS CloudFormation Stack

View File

@ -2,8 +2,8 @@
package ecr package ecr
import ( import (
"dagger.io/aws" "alpha.dagger.io/aws"
"dagger.io/os" "alpha.dagger.io/os"
) )
// Convert ECR credentials to Docker Login format // Convert ECR credentials to Docker Login format

View File

@ -2,7 +2,7 @@
package ecs package ecs
import ( import (
"dagger.io/aws" "alpha.dagger.io/aws"
) )
// Task implements ecs run-task for running a single container on ECS // Task implements ecs run-task for running a single container on ECS

View File

@ -2,8 +2,8 @@
package eks package eks
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/aws" "alpha.dagger.io/aws"
) )
// KubeConfig config outputs a valid kube-auth-config for kubectl client // KubeConfig config outputs a valid kube-auth-config for kubectl client

View File

@ -2,8 +2,8 @@
package elb package elb
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/aws" "alpha.dagger.io/aws"
) )
// Returns an unused rule priority (randomized in available range) // Returns an unused rule priority (randomized in available range)

View File

@ -2,9 +2,9 @@
package rds package rds
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"encoding/json" "encoding/json"
"dagger.io/aws" "alpha.dagger.io/aws"
) )
// Creates a new Database on an existing RDS Instance // Creates a new Database on an existing RDS Instance

View File

@ -2,9 +2,9 @@
package s3 package s3
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/aws" "alpha.dagger.io/aws"
) )
// S3 Bucket object(s) sync // S3 Bucket object(s) sync

View File

@ -2,7 +2,7 @@
package dagger package dagger
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
// An artifact such as source code checkout, container image, binary archive... // An artifact such as source code checkout, container image, binary archive...

View File

@ -3,9 +3,9 @@ package docker
import ( import (
"strconv" "strconv"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
// A container image that can run any docker command // A container image that can run any docker command

View File

@ -2,8 +2,8 @@
package docker package docker
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
// Build a Docker image from source, using included Dockerfile // Build a Docker image from source, using included Dockerfile

View File

@ -1,8 +1,8 @@
package gcp package gcp
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/alpine" "alpha.dagger.io/alpine"
) )
// Re-usable gcloud component // Re-usable gcloud component

View File

@ -2,7 +2,7 @@
package gcp package gcp
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
) )
// Base Google Cloud Config // Base Google Cloud Config

View File

@ -2,8 +2,8 @@
package gcr package gcr
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/gcp" "alpha.dagger.io/gcp"
) )
// Credentials retriever for GCR // Credentials retriever for GCR

View File

@ -2,8 +2,8 @@
package gke package gke
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/gcp" "alpha.dagger.io/gcp"
) )
// KubeConfig config outputs a valid kube-auth-config for kubectl client // KubeConfig config outputs a valid kube-auth-config for kubectl client

View File

@ -2,9 +2,9 @@
package git package git
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/alpine" "alpha.dagger.io/alpine"
) )
// A git repository // A git repository

View File

@ -2,11 +2,11 @@
package go package go
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/docker" "alpha.dagger.io/docker"
"dagger.io/os" "alpha.dagger.io/os"
) )
// A standalone go environment // A standalone go environment

View File

@ -4,9 +4,9 @@ package yarn
import ( import (
"strings" "strings"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/os" "alpha.dagger.io/os"
) )
// A Yarn package // A Yarn package

View File

@ -4,9 +4,9 @@ package helm
import ( import (
"strconv" "strconv"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/kubernetes" "alpha.dagger.io/kubernetes"
) )
// Install a Helm chart // Install a Helm chart

View File

@ -2,9 +2,9 @@
package kubernetes package kubernetes
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/alpine" "alpha.dagger.io/alpine"
) )
// Kubectl client // Kubectl client

View File

@ -2,9 +2,9 @@
package kustomize package kustomize
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/alpine" "alpha.dagger.io/alpine"
) )
#Kustomization: { #Kustomization: {

View File

@ -2,9 +2,9 @@
package netlify package netlify
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/os" "alpha.dagger.io/os"
) )
// Netlify account credentials // Netlify account credentials

View File

@ -3,10 +3,10 @@ package os
import ( import (
"strings" "strings"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/alpine" "alpha.dagger.io/alpine"
) )
// Default image for basic use cases // Default image for basic use cases

View File

@ -1,8 +1,8 @@
package os package os
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
#Dir: { #Dir: {

View File

@ -2,8 +2,8 @@
package os package os
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
// Built-in file implementation, using buildkit // Built-in file implementation, using buildkit

View File

@ -4,8 +4,8 @@ package random
import ( import (
"strconv" "strconv"
"dagger.io/alpine" "alpha.dagger.io/alpine"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
// Generate a random string // Generate a random string

View File

@ -10,6 +10,6 @@ var (
//go:embed **/*.cue **/*/*.cue //go:embed **/*.cue **/*/*.cue
FS embed.FS FS embed.FS
PackageName = "dagger.io" PackageName = "alpha.dagger.io"
Path = path.Join("cue.mod", "pkg", PackageName) Path = path.Join("cue.mod", "pkg", PackageName)
) )

View File

@ -4,8 +4,8 @@ package terraform
import ( import (
"encoding/json" "encoding/json"
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
) )
// Terraform configuration // Terraform configuration

View File

@ -4,6 +4,10 @@ setup() {
common_setup common_setup
} }
@test "cue-sanity-check" {
dagger -e sanity-check up
}
@test "os" { @test "os" {
dagger -e os up dagger -e os up

View File

@ -69,8 +69,8 @@ setup() {
ln -s "$TESTDIR"/cli/packages "$DAGGER_WORKSPACE"/plan ln -s "$TESTDIR"/cli/packages "$DAGGER_WORKSPACE"/plan
"$DAGGER" new "a" --module "$DAGGER_WORKSPACE"/plan --package dagger.io/test/a "$DAGGER" new "a" --module "$DAGGER_WORKSPACE"/plan --package alpha.dagger.io/test/a
"$DAGGER" new "b" --module "$DAGGER_WORKSPACE"/plan --package dagger.io/test/b "$DAGGER" new "b" --module "$DAGGER_WORKSPACE"/plan --package alpha.dagger.io/test/b
"$DAGGER" up -e "a" "$DAGGER" up -e "a"
"$DAGGER" up -e "b" "$DAGGER" up -e "b"

View File

@ -1,8 +1,8 @@
package testing package testing
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/dagger" "alpha.dagger.io/dagger"
) )
source: dagger.#Artifact source: dagger.#Artifact

View File

@ -1,8 +1,8 @@
package testing package testing
import ( import (
"dagger.io/dagger/op" "alpha.dagger.io/dagger/op"
"dagger.io/dagger" "alpha.dagger.io/dagger"
) )
source: dagger.#Artifact source: dagger.#Artifact

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
"dagger.io/aws" "alpha.dagger.io/aws"
) )
awsConfig: aws.#Config & { awsConfig: aws.#Config & {

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"dagger.io/dagger" "alpha.dagger.io/dagger"
) )
#A: { #A: {

View File

@ -1,6 +1,6 @@
package a package a
import "dagger.io/dagger/op" import "alpha.dagger.io/dagger/op"
exp: { exp: {
string string

View File

@ -1,6 +1,6 @@
package b package b
import "dagger.io/dagger/op" import "alpha.dagger.io/dagger/op"
exp: { exp: {
string string

Some files were not shown because too many files have changed in this diff Show More