Merge pull request #1944 from KGB33/update_go_pkg_docs

Update go pkg DefaultVersion
This commit is contained in:
Andrea Luzzardi 2022-03-30 15:47:11 -07:00 committed by GitHub
commit 8385b89f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -5,11 +5,11 @@ import (
)
// Go image default version
#DefaultVersion: "1.16"
_#DefaultVersion: "1.18"
// Build a go base image
#Image: {
version: *#DefaultVersion | string
version: *_#DefaultVersion | string
packages: [pkgName=string]: version: string | *""

View File

@ -18,7 +18,7 @@ dagger.#Plan & {
command: {
name: "/bin/sh"
args: ["-c", """
go version | grep "1.16"
go version | grep "1.18"
"""]
}
}

View File

@ -4,7 +4,7 @@ setup() {
common_setup
}
@test "bash" {
@test "go" {
dagger "do" -p ./build.cue test
dagger "do" -p ./container.cue test
dagger "do" -p ./image.cue test