Skip to content

Commit

Permalink
Merge pull request #1971 from vdemeester/universe-go-fix
Browse files Browse the repository at this point in the history
universe: go: add git by default in go.#Image
  • Loading branch information
aluzzardi committed Apr 4, 2022
2 parents fa2ca10 + 2f2a4e0 commit d79de11
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 d79de11

Please sign in to comment.