Apply Solomon comments

- Simplify cache id parameter with a field `name`
- Configure GOOS & GOARCH values
- Container image can now be overridden
- Simplify build export

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2022-02-18 15:12:58 +01:00
committed by Vasek - Tom C
parent 2887139bf7
commit 1e384c4e9a
3 changed files with 25 additions and 19 deletions

View File

@@ -3,6 +3,7 @@ package go
import (
"dagger.io/dagger"
"universe.dagger.io/go"
"universe.dagger.io/alpine"
)
dagger.#Plan & {
@@ -13,5 +14,17 @@ dagger.#Plan & {
source: _source
command: args: ["version"]
}
overide: {
base: alpine.#Build & {
packages: go: _
}
command: go.#Container & {
input: base.output
source: _source
command: args: ["version"]
}
}
}
}