Hid DefaultVersion definition.

Also updated to default version to go 1.18.

Signed-off-by: Kelton Bassingthwaite <KeltonBassingthwaite@gmail.com>
This commit is contained in:
Kelton Bassingthwaite 2022-03-30 08:24:32 -07:00 committed by Andrea Luzzardi
parent 876d478caa
commit ef87a79588
2 changed files with 3 additions and 3 deletions

View File

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

View File

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