Skip to content

Commit 7e1981c

Browse files
authored
Pass GO_VERSION into invocations of docker run (#40)
1 parent 6a97fc5 commit 7e1981c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gradle-modules/src/main/kotlin/org.sonarsource.cloud-native.go-docker-environment.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ val dockerTasks = goBuildExtension.dockerCommands.map { tasksToCommands ->
107107
"type=bind,source=${project.projectDir},target=$workDir",
108108
"--env",
109109
"GO_CROSS_COMPILE=${inputs.properties["goCrossCompile"]}",
110+
"--env",
111+
"GO_VERSION=$goVersion",
110112
"${project.name}-builder",
111113
"bash",
112114
"-c",

0 commit comments

Comments
 (0)