Skip to content

Commit a7eaae1

Browse files
authored
remove spurious dependencies (#2)
1 parent 03e02b7 commit a7eaae1

File tree

5 files changed

+10
-35
lines changed

5 files changed

+10
-35
lines changed

.circleci/config.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ workflows:
77
workflow:
88
jobs:
99
- go-test:
10-
name: Go 1.14
11-
docker-image: circleci/golang:1.13
10+
name: Go 1.15
11+
docker-image: circleci/golang:1.14
1212
run-lint: true
1313
with-coverage: true
1414
- go-test:
15-
name: Go 1.13
16-
docker-image: circleci/golang:1.13
15+
name: Go 1.14
16+
docker-image: circleci/golang:1.14
1717
- go-test-windows:
1818
name: Windows
1919
- benchmarks
@@ -35,11 +35,6 @@ jobs:
3535
environment:
3636
CIRCLE_TEST_REPORTS: /tmp/circle-reports
3737
CIRCLE_ARTIFACTS: /tmp/circle-artifacts
38-
COMMON_GO_PACKAGES: >
39-
github.com/golang/dep/cmd/dep
40-
github.com/jstemmer/go-junit-report
41-
42-
working_directory: /go/src/gopkg.in/launchdarkly/go-server-sdk-evaluation.v1
4338

4439
steps:
4540
- checkout
@@ -64,7 +59,6 @@ jobs:
6459
command: |
6560
mkdir -p $CIRCLE_TEST_REPORTS
6661
mkdir -p $CIRCLE_ARTIFACTS
67-
trap "go-junit-report < $CIRCLE_ARTIFACTS/report.txt > $CIRCLE_TEST_REPORTS/junit.xml" EXIT
6862
make test | tee $CIRCLE_ARTIFACTS/report.txt
6963
7064
- run:
@@ -96,23 +90,12 @@ jobs:
9690

9791
environment:
9892
GOPATH: C:\Users\VssAdministrator\go
99-
PACKAGE_PATH: github.com\launchdarkly\go-semver
10093

10194
steps:
10295
- checkout
10396
- run: go version
104-
- run:
105-
name: move source
106-
command: |
107-
go env GOPATH
108-
mkdir ${env:GOPATH}\src\${env:PACKAGE_PATH}
109-
mv * ${env:GOPATH}\src\${env:PACKAGE_PATH}\
110-
- run:
111-
name: build and test
112-
command: |
113-
cd ${env:GOPATH}\src\${env:PACKAGE_PATH}
114-
go get -t ./...
115-
go test -race ./...
97+
- run: go build ./...
98+
- run: go test -race -v ./...
11699

117100
benchmarks:
118101
docker:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ benchmarks: build
2828
@if grep <build/benchmarks.out '[1-9][0-9]* allocs/op'; then echo "Heap allocations detected in benchmarks!"; exit 1; fi
2929

3030
test-coverage: $(COVERAGE_PROFILE_RAW)
31-
if [ -z "$(which go-coverage-enforcer)" ]; then go install github.com/launchdarkly-labs/go-coverage-enforcer; fi
31+
if [ -z "$(which go-coverage-enforcer)" ]; then go get -u github.com/launchdarkly-labs/go-coverage-enforcer; fi
3232
go-coverage-enforcer -skipcode "// COVERAGE" -showcode -outprofile $(COVERAGE_PROFILE_FILTERED) $(COVERAGE_PROFILE_RAW)
3333
go tool cover -html $(COVERAGE_PROFILE_FILTERED) -o $(COVERAGE_PROFILE_FILTERED_HTML)
3434
go tool cover -html $(COVERAGE_PROFILE_RAW) -o $(COVERAGE_PROFILE_RAW_HTML)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This package has no external dependencies other than the regular Go runtime.
1414

1515
## Supported Go versions
1616

17-
This version of the project has been tested with Go 1.13 through 1.14.
17+
This version of the project has been tested with Go 1.14 and above.
1818

1919
## Contributing
2020

go.mod

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@ module github.com/launchdarkly/go-semver
22

33
go 1.13
44

5-
require (
6-
github.com/launchdarkly-labs/go-coverage-enforcer v0.0.0-20200610003341-8bc77dea293c // indirect
7-
github.com/stretchr/testify v1.6.1
8-
)
5+
require github.com/stretchr/testify v1.6.1

go.sum

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
21
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
32
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4-
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
5-
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
6-
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
7-
github.com/launchdarkly-labs/go-coverage-enforcer v0.0.0-20200610003341-8bc77dea293c h1:efBUku8Iniz1FsNaOpr8Q2Nb3zqclxRcmLkyoskWxik=
8-
github.com/launchdarkly-labs/go-coverage-enforcer v0.0.0-20200610003341-8bc77dea293c/go.mod h1:fJXIR7UJYgdXVmLM40NGl/dbs2Smv+iESsaT9uC4v/s=
93
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
104
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
115
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
126
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
137
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
8+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
149
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1510
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
1611
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)