Skip to content

Commit

Permalink
stdlib: move all imports to alpha.dagger.io
Browse files Browse the repository at this point in the history
Signed-off-by: Solomon Hykes <solomon@dagger.io>
  • Loading branch information
shykes committed Jun 25, 2021
1 parent aa63352 commit d7a805f
Show file tree
Hide file tree
Showing 168 changed files with 412 additions and 312 deletions.
6 changes: 3 additions & 3 deletions .dagger/env/dev/plan/main.cue
Expand Up @@ -2,9 +2,9 @@
package main

import (
"dagger.io/dagger"
"dagger.io/os"
"dagger.io/go"
"alpha.dagger.io/dagger"
"alpha.dagger.io/os"
"alpha.dagger.io/go"
)

// Dagger source code
Expand Down
6 changes: 3 additions & 3 deletions .dagger/env/docs/plan/main.cue
@@ -1,9 +1,9 @@
package main

import (
"dagger.io/dagger"
"dagger.io/js/yarn"
"dagger.io/netlify"
"alpha.dagger.io/dagger"
"alpha.dagger.io/js/yarn"
"alpha.dagger.io/netlify"
)

// dagger repository
Expand Down
2 changes: 1 addition & 1 deletion .dagger/env/test-core/plan/test-core.cue
@@ -1,7 +1,7 @@
package testcore

import (
"dagger.io/dagger"
"alpha.dagger.io/dagger"
)

name: dagger.#Input & {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dagger/cmd/doc.go
Expand Up @@ -337,7 +337,7 @@ func walkStdlib(ctx context.Context, output, format string) {
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")
val, err := loadCode(pkgName)
if err != nil {
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions docs/learn/102-dev.md
Expand Up @@ -136,7 +136,7 @@ Let's write the corresponding Cue code to a new file in our package:
package multibucket
import (
"dagger.io/dagger"
"alpha.dagger.io/dagger"
)
// Source code of the sample application
Expand All @@ -153,7 +153,7 @@ The second component of our plan is the Yarn package built from the app source c
package multibucket
import (
"dagger.io/js/yarn"
"alpha.dagger.io/js/yarn"
)
// Build the source code using Yarn
Expand All @@ -165,7 +165,7 @@ app: yarn.#Package & {
Let's break it down:

- `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`
- `&`: 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.
Expand All @@ -182,7 +182,7 @@ The third component of our plan is the Netlify site to which the app will be dep
package multibucket
import (
"dagger.io/netlify"
"alpha.dagger.io/netlify"
)
// Netlify site
Expand Down
14 changes: 7 additions & 7 deletions docs/learn/107-kubernetes.md
Expand Up @@ -164,7 +164,7 @@ values={[
package kube
import (
"dagger.io/kubernetes"
"alpha.dagger.io/kubernetes"
)
// input: ~/.kube/config file used for deployment
Expand All @@ -190,8 +190,8 @@ deploy: kubernetes.#Resources & {
package kube
import (
"dagger.io/kubernetes"
"dagger.io/gcp/gke"
"alpha.dagger.io/kubernetes"
"alpha.dagger.io/gcp/gke"
)
// gkeConfig used for deployment
Expand All @@ -218,8 +218,8 @@ deploy: kubernetes.#Resources & {
package kube
import (
"dagger.io/kubernetes"
"dagger.io/aws/eks"
"alpha.dagger.io/kubernetes"
"alpha.dagger.io/aws/eks"
)
// eksConfig used for deployment
Expand Down Expand Up @@ -587,8 +587,8 @@ package kube
import (
"encoding/yaml"
"dagger.io/dagger"
"dagger.io/docker"
"alpha.dagger.io/dagger"
"alpha.dagger.io/docker"
)
// input: source code repository, must contain a Dockerfile
Expand Down
10 changes: 5 additions & 5 deletions docs/learn/108-cloudformation.md
Expand Up @@ -168,7 +168,7 @@ Let's implement the first step, use the `aws.#Config` relay, and request its fir
package cloudformation
import (
"dagger.io/aws"
"alpha.dagger.io/aws"
)
// AWS account: credentials and region
Expand Down Expand Up @@ -226,10 +226,10 @@ Now that we have the `config` definition properly configured, let's modify the C
package cloudformation
import (
"dagger.io/aws"
"dagger.io/dagger"
"dagger.io/random"
"dagger.io/aws/cloudformation"
"alpha.dagger.io/aws"
"alpha.dagger.io/dagger"
"alpha.dagger.io/random"
"alpha.dagger.io/aws/cloudformation"
)
// AWS account: credentials and region
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/alpine.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: alpine
---

# dagger.io/alpine
# alpha.dagger.io/alpine

Base package for Alpine Linux

```cue
import "dagger.io/alpine"
import "alpha.dagger.io/alpine"
```

## alpine.#Image
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/aws/README.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: aws
---

# dagger.io/aws
# alpha.dagger.io/aws

AWS base package

```cue
import "dagger.io/aws"
import "alpha.dagger.io/aws"
```

## aws.#CLI
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/aws/cloudformation.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: cloudformation
---

# dagger.io/aws/cloudformation
# alpha.dagger.io/aws/cloudformation

AWS CloudFormation

```cue
import "dagger.io/aws/cloudformation"
import "alpha.dagger.io/aws/cloudformation"
```

## cloudformation.#Stack
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/aws/ecr.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: ecr
---

# dagger.io/aws/ecr
# alpha.dagger.io/aws/ecr

Amazon Elastic Container Registry (ECR)

```cue
import "dagger.io/aws/ecr"
import "alpha.dagger.io/aws/ecr"
```

## ecr.#Credentials
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/aws/ecs.md
Expand Up @@ -2,10 +2,10 @@
sidebar_label: ecs
---

# dagger.io/aws/ecs
# alpha.dagger.io/aws/ecs

AWS Elastic Container Service (ECS)

```cue
import "dagger.io/aws/ecs"
import "alpha.dagger.io/aws/ecs"
```
4 changes: 2 additions & 2 deletions docs/reference/universe/aws/eks.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: eks
---

# dagger.io/aws/eks
# alpha.dagger.io/aws/eks

AWS Elastic Kubernetes Service (EKS)

```cue
import "dagger.io/aws/eks"
import "alpha.dagger.io/aws/eks"
```

## eks.#KubeConfig
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/aws/elb.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: elb
---

# dagger.io/aws/elb
# alpha.dagger.io/aws/elb

AWS Elastic Load Balancer (ELBv2)

```cue
import "dagger.io/aws/elb"
import "alpha.dagger.io/aws/elb"
```

## elb.#RandomRulePriority
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/aws/rds.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: rds
---

# dagger.io/aws/rds
# alpha.dagger.io/aws/rds

AWS Relational Database Service (RDS)

```cue
import "dagger.io/aws/rds"
import "alpha.dagger.io/aws/rds"
```

## rds.#Database
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/aws/s3.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: s3
---

# dagger.io/aws/s3
# alpha.dagger.io/aws/s3

AWS Simple Storage Service

```cue
import "dagger.io/aws/s3"
import "alpha.dagger.io/aws/s3"
```

## s3.#Object
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/dagger/README.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: dagger
---

# dagger.io/dagger
# alpha.dagger.io/dagger

Dagger core types

```cue
import "dagger.io/dagger"
import "alpha.dagger.io/dagger"
```

## dagger.#Secret
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/dagger/op.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: op
---

# dagger.io/dagger/op
# alpha.dagger.io/dagger/op

op: low-level operations for Dagger processing pipelines

```cue
import "dagger.io/dagger/op"
import "alpha.dagger.io/dagger/op"
```

## op.#Copy
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/docker.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: docker
---

# dagger.io/docker
# alpha.dagger.io/docker

Docker container operations

```cue
import "dagger.io/docker"
import "alpha.dagger.io/docker"
```

## docker.#Build
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/gcp/README.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: gcp
---

# dagger.io/gcp
# alpha.dagger.io/gcp

Google Cloud Platform

```cue
import "dagger.io/gcp"
import "alpha.dagger.io/gcp"
```

## gcp.#Config
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/gcp/gcr.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: gcr
---

# dagger.io/gcp/gcr
# alpha.dagger.io/gcp/gcr

Google Container Registry

```cue
import "dagger.io/gcp/gcr"
import "alpha.dagger.io/gcp/gcr"
```

## gcr.#Credentials
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/gcp/gke.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: gke
---

# dagger.io/gcp/gke
# alpha.dagger.io/gcp/gke

Google Kubernetes Engine

```cue
import "dagger.io/gcp/gke"
import "alpha.dagger.io/gcp/gke"
```

## gke.#KubeConfig
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/git.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: git
---

# dagger.io/git
# alpha.dagger.io/git

Git operations

```cue
import "dagger.io/git"
import "alpha.dagger.io/git"
```

## git.#CurrentBranch
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/universe/go.md
Expand Up @@ -2,12 +2,12 @@
sidebar_label: go
---

# dagger.io/go
# alpha.dagger.io/go

Go build operations

```cue
import "dagger.io/go"
import "alpha.dagger.io/go"
```

## go.#Build
Expand Down

0 comments on commit d7a805f

Please sign in to comment.