go-arg/test/compile_with_go111.sh

14 lines
333 B
Bash
Raw Normal View History

#!/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 )"
docker run \
--rm \
2018-12-27 13:28:34 -06:00
-v $DIR/some-program:/src \
-w /src \
golang:1.11 \
go build -o /dev/null