Selaa lähdekoodia

Closes #594: Use go run instead of go build

Marcela Bonell 10 vuotta sitten
vanhempi
sitoutus
84c2d89542
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      test/tests/golang-hello-world/run.sh

+ 1 - 1
test/tests/golang-hello-world/run.sh

@@ -5,4 +5,4 @@ image="$1"
 dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 dirContainer='/usr/src/hello-world'
 
-docker run --rm -v "$dirTest":"$dirContainer":ro -w "$dirContainer" "$image" sh -c 'go build -o /hello-world hello-world.go && /hello-world'
+docker run --rm -v "$dirTest":"$dirContainer":ro -w "$dirContainer" "$image" sh -c 'go run hello-world.go'