universe: go: add git by default in go.#Image
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
265cf9c526
commit
2f2a4e0a31
@ -12,6 +12,8 @@ _#DefaultVersion: "1.18"
|
|||||||
version: *_#DefaultVersion | string
|
version: *_#DefaultVersion | string
|
||||||
|
|
||||||
packages: [pkgName=string]: version: 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
|
// FIXME Basically a copy of alpine.#Build with a different image
|
||||||
// Should we create a special definition?
|
// Should we create a special definition?
|
||||||
|
@ -18,7 +18,7 @@ dagger.#Plan & {
|
|||||||
command: {
|
command: {
|
||||||
name: "/bin/sh"
|
name: "/bin/sh"
|
||||||
args: ["-c", """
|
args: ["-c", """
|
||||||
go version | grep "1.18"
|
go version | grep "1.18" ; git version
|
||||||
"""]
|
"""]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,7 +35,7 @@ dagger.#Plan & {
|
|||||||
command: {
|
command: {
|
||||||
name: "/bin/bash"
|
name: "/bin/bash"
|
||||||
args: ["-c", """
|
args: ["-c", """
|
||||||
go version | grep "1.17"
|
go version | grep "1.17" ; git version
|
||||||
"""]
|
"""]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user