This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/pkg/universe.dagger.io/go/test/container.cue
Andrea Luzzardi 3e8c9379b5 universe: go: improve cache management
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-04-04 15:33:33 -07:00

37 lines
489 B
CUE

package go
import (
"dagger.io/dagger"
"universe.dagger.io/go"
"universe.dagger.io/alpine"
)
dagger.#Plan & {
actions: test: {
_source: dagger.#Scratch & {}
simple: go.#Container & {
source: _source
command: {
name: "go"
args: ["version"]
}
}
override: {
base: alpine.#Build & {
packages: go: _
}
command: go.#Container & {
input: base.output
source: _source
command: {
name: "go"
args: ["version"]
}
}
}
}
}