2018-12-27 13:11:15 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-12-27 13:25:10 -06:00
|
|
|
# This test checks that we can compile some code that depends on go-arg when using go 1.11
|
|
|
|
# with the new go module system active.
|
|
|
|
|
2018-12-27 13:28:34 -06:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
2018-12-27 13:11:15 -06:00
|
|
|
docker run \
|
|
|
|
--rm \
|
2018-12-27 13:28:34 -06:00
|
|
|
-v $DIR/some-program:/src \
|
2018-12-27 13:11:15 -06:00
|
|
|
-w /src \
|
|
|
|
golang:1.11 \
|
2018-12-27 13:17:24 -06:00
|
|
|
go build -o /dev/null
|