Skip to content

Commit

Permalink
universe: go: add git by default in go.#Image
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
  • Loading branch information
vdemeester committed Apr 3, 2022
1 parent 265cf9c commit 2f2a4e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/universe.dagger.io/go/image.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
4 changes: 2 additions & 2 deletions pkg/universe.dagger.io/go/test/image.cue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dagger.#Plan & {
command: {
name: "/bin/sh"
args: ["-c", """
go version | grep "1.18"
go version | grep "1.18" ; git version
"""]
}
}
Expand All @@ -35,7 +35,7 @@ dagger.#Plan & {
command: {
name: "/bin/bash"
args: ["-c", """
go version | grep "1.17"
go version | grep "1.17" ; git version
"""]
}
}
Expand Down

0 comments on commit 2f2a4e0

Please sign in to comment.