We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9fd18b commit 7faab81Copy full SHA for 7faab81
1 file changed
golang-issue-18555/test.ps1
@@ -1,10 +1,12 @@
1
Write-Host Testing new golang image to build on volume mountpoint
2
Write-Host The webserver dir before running the go build:
3
dir ..\webserver
4
+Write-Host Building a Go binary inside a container.
5
docker run -v "$(pwd)\..\webserver:C:\code" -w /code golang-issue-18555 go build webserver.go
-Write-Host Current dir after running the go build:
6
Write-Host The webserver dir after running the go build:
7
8
if (!(Test-Path ..\webserver\webserver.exe)) {
9
- Write-Error "webserver.exe is missing, go build didn't work in container"
+ 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."
12
}
0 commit comments