Use go mod (#265)

This commit is contained in:
Thomas Pelletier
2019-03-21 17:22:05 -07:00
committed by GitHub
parent 405d48dc28
commit f9070d3b40
5 changed files with 21 additions and 9 deletions
+2 -3
View File
@@ -13,9 +13,6 @@ commands:
description: "Get go dependencies"
steps:
- run: go get github.com/jstemmer/go-junit-report
- run: go get github.com/davecgh/go-spew/spew
- run: go get gopkg.in/yaml.v2
- run: go get github.com/BurntSushi/toml
run_test:
description: "Run unit tests for a go module"
@@ -53,6 +50,8 @@ jobs:
name: golang
version: "<<parameters.version>>"
working_directory: /go/src/github.com/pelletier/go-toml
environment:
GO111MODULE: "on"
steps:
- checkout
- run: mkdir -p /tmp/workspace
+2 -3
View File
@@ -8,11 +8,10 @@ matrix:
allow_failures:
- go: tip
fast_finish: true
env:
- GO111MODULE=on
script:
- if [ -n "$(go fmt ./...)" ]; then exit 1; fi
- go get github.com/davecgh/go-spew/spew
- go get gopkg.in/yaml.v2
- go get github.com/BurntSushi/toml
- go test github.com/pelletier/go-toml -race -coverprofile=coverage.txt -covermode=atomic
- go test github.com/pelletier/go-toml/cmd/tomljson
- go test github.com/pelletier/go-toml/cmd/tomll
+1 -3
View File
@@ -8,6 +8,7 @@ environment:
GOPATH: c:\gopath
DEPTESTBYPASS501: 1
GOVERSION: 1.12
GO111MODULE: on
init:
- git config --global core.autocrlf input
@@ -27,9 +28,6 @@ build: false
deploy: false
test_script:
- go get github.com/davecgh/go-spew/spew
- go get gopkg.in/yaml.v2
- go get github.com/BurntSushi/toml
- go test github.com/pelletier/go-toml
- go test github.com/pelletier/go-toml/cmd/tomljson
- go test github.com/pelletier/go-toml/cmd/tomll
+9
View File
@@ -0,0 +1,9 @@
module github.com/pelletier/go-toml
go 1.12
require (
github.com/BurntSushi/toml v0.3.1
github.com/davecgh/go-spew v1.1.1
gopkg.in/yaml.v2 v2.2.2
)
+7
View File
@@ -0,0 +1,7 @@
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=