From 7995dd92c79d6907af1422049d9c8ddc0c048d2c Mon Sep 17 00:00:00 2001 From: Rick <1358735+rickb777@users.noreply.github.com> Date: Wed, 18 Sep 2019 14:04:40 +0100 Subject: [PATCH] build settings --- build+test.sh | 6 +++--- coverage.sh | 6 +++--- go.mod | 3 +++ go.sum | 3 +++ 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/build+test.sh b/build+test.sh index 98418dff..34b31978 100755 --- a/build+test.sh +++ b/build+test.sh @@ -1,5 +1,5 @@ #!/bin/bash -e -cd $(dirname $0) +cd "$(dirname $0)" PATH=$HOME/go/bin:$PATH unset GOPATH export GO111MODULE=on @@ -12,7 +12,7 @@ function v } if ! type -p goveralls; then - v go get github.com/mattn/goveralls + v go install github.com/mattn/goveralls fi #if ! type -p shadow; then @@ -20,7 +20,7 @@ fi #fi if ! type -p goreturns; then - v go get github.com/sqs/goreturns + v go install github.com/sqs/goreturns fi echo date... diff --git a/coverage.sh b/coverage.sh index b8b78321..2b8420f7 100755 --- a/coverage.sh +++ b/coverage.sh @@ -2,14 +2,14 @@ # Developer tool to run the tests and obtain HTML coverage reports. DIR=$PWD -DOT=$(dirname $0) +DOT="$(dirname $0)" cd $DOT TOP=$PWD # install Goveralls if absent if ! type -p goveralls; then - echo go get github.com/mattn/goveralls - go get github.com/mattn/goveralls + echo go install github.com/mattn/goveralls + go install github.com/mattn/goveralls fi mkdir -p reports diff --git a/go.mod b/go.mod index 9b7e613f..c178378e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,9 @@ module github.com/rickb777/date require ( + github.com/mattn/goveralls v0.0.2 // indirect github.com/rickb777/plural v1.2.0 golang.org/x/text v0.3.2 ) + +go 1.13 diff --git a/go.sum b/go.sum index 1b495fb7..a9c5efed 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,8 @@ +github.com/mattn/goveralls v0.0.2 h1:7eJB6EqsPhRVxvwEXGnqdO2sJI0PTsrWoTMXEk9/OQc= +github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= github.com/rickb777/plural v1.2.0 h1:5tvEc7UBCZ7l8h/2UeybSkt/uu1DQsZFOFdNevmUhlE= github.com/rickb777/plural v1.2.0/go.mod h1:UdpyWFCGbo3mvK3f/PfZOAOrkjzJlYN/sD46XNWJ+Es= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e h1:FDhOuMEY4JVRztM/gsbk+IKUQ8kj74bxZrgw87eMMVc= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=