Skip to content

Commit 7faab81

Browse files
committed
Improve output
1 parent b9fd18b commit 7faab81

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

golang-issue-18555/test.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
Write-Host Testing new golang image to build on volume mountpoint
22
Write-Host The webserver dir before running the go build:
33
dir ..\webserver
4+
Write-Host Building a Go binary inside a container.
45
docker run -v "$(pwd)\..\webserver:C:\code" -w /code golang-issue-18555 go build webserver.go
5-
Write-Host Current dir after running the go build:
66
Write-Host The webserver dir after running the go build:
77
dir ..\webserver
88
if (!(Test-Path ..\webserver\webserver.exe)) {
9-
Write-Error "webserver.exe is missing, go build didn't work in container"
9+
Write-Error "webserver.exe is missing, go build didn't work in container."
10+
} else {
11+
Write-Host "webserver.exe found, go build works in a container."
1012
}

0 commit comments

Comments
 (0)