Browse Source

Closes #594: Use go run instead of go build

Marcela Bonell 10 years ago
parent
commit
84c2d89542
1 changed files with 1 additions and 1 deletions
  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'