universe: go: add git by default in go.#Image

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2022-04-01 09:36:47 +02:00
parent 265cf9c526
commit 2f2a4e0a31
No known key found for this signature in database
GPG Key ID: 4B8A6F5F62AFA8D1
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,8 @@ _#DefaultVersion: "1.18"
version: *_#DefaultVersion | string
packages: [pkgName=string]: version: string | *""
// FIXME Remove once golang image include 1.18 *or* go compiler is smart with -buildvcs
packages: git: _
// FIXME Basically a copy of alpine.#Build with a different image
// Should we create a special definition?

View File

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