Skip to content

Commit

Permalink
universe.dagger.io/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 Mar 31, 2022
1 parent 265cf9c commit b0a48c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions pkg/universe.dagger.io/go/image.cue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ _#DefaultVersion: "1.18"
docker.#Pull & {
source: "index.docker.io/golang:\(version)-alpine"
},
docker.#Run & {
command: {
name: "apk"
args: ["add", "git"]
flags: {
"-U": true
"--no-cache": true
}
}
},
for pkgName, pkg in packages {
docker.#Run & {
command: {
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 b0a48c1

Please sign in to comment.