Skip to content

Commit b82110d

Browse files
authored
Merge pull request #7 from launchdarkly/eb/ch81628/modules
remove dep files, prepare for module-only v2 release
2 parents 46bdabf + 783c53c commit b82110d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+18
-20019
lines changed

.circleci/config.yml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,6 @@ workflows:
1212
- go-test:
1313
name: Go 1.13
1414
docker-image: circleci/golang:1.13
15-
- go-test:
16-
name: Go 1.12
17-
docker-image: circleci/golang:1.12
18-
with-modules: false
19-
work-dir: /go/src/github.com/launchdarkly/go-test-helpers
20-
- go-test:
21-
name: Go 1.11
22-
docker-image: circleci/golang:1.11
23-
with-modules: false
24-
work-dir: /go/src/github.com/launchdarkly/go-test-helpers
25-
- go-test:
26-
name: Go 1.10
27-
docker-image: circleci/golang:1.10
28-
run-lint: false # the version of golangci-lint we're using doesn't work with older Go versions
29-
with-modules: false
30-
work-dir: /go/src/github.com/launchdarkly/go-test-helpers
31-
- go-test:
32-
name: Go 1.9
33-
docker-image: circleci/golang:1.9
34-
run-lint: false # the version of golangci-lint we're using doesn't work with older Go versions
35-
with-modules: false
36-
work-dir: /go/src/github.com/launchdarkly/go-test-helpers
37-
- go-test:
38-
name: Go 1.8
39-
docker-image: circleci/golang:1.8
40-
run-lint: false # the version of golangci-lint we're using doesn't work with older Go versions
41-
with-modules: false
42-
work-dir: /go/src/github.com/launchdarkly/go-test-helpers
4315
- go-test-windows:
4416
name: Windows
4517

@@ -51,34 +23,19 @@ jobs:
5123
run-lint:
5224
type: boolean
5325
default: true
54-
with-modules:
55-
type: boolean
56-
default: true
57-
work-dir:
58-
type: string
59-
default: ~/project
6026

6127
docker:
6228
- image: <<parameters.docker-image>>
6329
environment:
6430
CIRCLE_TEST_REPORTS: /tmp/circle-reports
6531
CIRCLE_ARTIFACTS: /tmp/circle-artifacts
6632

67-
working_directory: <<parameters.work-dir>>
68-
6933
steps:
7034
- checkout
7135
- run:
7236
name: install go-junit-report
7337
command: go get -u github.com/jstemmer/go-junit-report
7438

75-
- unless:
76-
condition: <<parameters.with-modules>>
77-
steps:
78-
- run:
79-
name: get dependencies
80-
command: go get -t ./...
81-
8239
- when:
8340
condition: <<parameters.run-lint>>
8441
steps:

.ldrelease/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ template:
33
env:
44
LD_RELEASE_GO_IMPORT_PATH: github.com/launchdarkly/go-test-helpers
55

6+
releasableBranches:
7+
- name: v1
8+
- name: v2
9+
610
publications:
7-
- url: https://godoc.org/github.com/launchdarkly/go-test-helpers
11+
- url: https://pkg.go.dev/github.com/launchdarkly/go-test-helpers
812
description: documentation

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ All notable changes to the project will be documented in this file. This project
1010
### Added:
1111
- Added `go.mod` so this package can be consumed as a module. This does not affect code that is currently consuming it via `go get`, `dep`, or `govendor`.
1212

13-
1413
## [1.1.2] - 2020-04-01
1514
### Fixed:
1615
- Patch event type for client-side streams.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ We encourage pull requests and other contributions from the community. Before su
1212

1313
### Prerequisites
1414

15-
This project should be built against Go 1.8 or newer.
15+
This project should be built against Go 1.13 or newer.
1616

1717
### Building
1818

Gopkg.lock

Lines changed: 0 additions & 47 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# LaunchDarkly Go Test Helpers
22

3-
[![Circle CI](https://circleci.com/gh/launchdarkly/go-test-helpers.svg?style=svg)](https://circleci.com/gh/launchdarkly/go-test-helpers)
3+
[![Circle CI](https://circleci.com/gh/launchdarkly/go-test-helpers.svg?style=svg)](https://circleci.com/gh/launchdarkly/go-test-helpers) [![Documentation](https://img.shields.io/static/v1?label=go.dev&message=reference&color=00add8)](https://pkg.go.dev/github.com/launchdarkly/go-test-helpers)
44

5-
This package centralizes some test support code that is used by LaunchDarkly's Go SDK and related components, and that may be useful in other Go projects.
5+
This project centralizes some test support code that is used by LaunchDarkly's Go SDK and related components, and that may be useful in other Go projects.
66

77
While this code may be useful in other projects, it is primarily geared toward LaunchDarkly's own development needs and is not meant to provide a large general-purpose framework. It is meant for unit test code and should not be used as a runtime dependency.
88

9+
This version of the project requires Go 1.13 or higher.
10+
911
## Contents
1012

1113
The main package provides general-purpose helper functions.
@@ -22,10 +24,10 @@ Import any of these packages in your test code:
2224

2325
```go
2426
import (
25-
"github.com/launchdarkly/go-test-helpers"
26-
"github.com/launchdarkly/go-test-helpers/httphelpers"
27-
"github.com/launchdarkly/go-test-helpers/ldservices"
28-
"github.com/launchdarkly/go-test-helpers/testbox"
27+
"github.com/launchdarkly/go-test-helpers/v2"
28+
"github.com/launchdarkly/go-test-helpers/v2/httphelpers"
29+
"github.com/launchdarkly/go-test-helpers/v2/ldservices"
30+
"github.com/launchdarkly/go-test-helpers/v2/testbox"
2931
)
3032
```
3133

go.mod

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ module github.com/launchdarkly/go-test-helpers
33
go 1.13
44

55
require (
6-
github.com/davecgh/go-spew v1.1.1
7-
github.com/launchdarkly/eventsource v0.0.0-20190617224151-6b837031c9ca
8-
github.com/pmezard/go-difflib v1.0.0
6+
github.com/davecgh/go-spew v1.1.1 // indirect
97
github.com/stretchr/testify v1.5.1
10-
gopkg.in/launchdarkly/go-sdk-common.v1 v1.0.0-20200204015611-d48d1b4f4e70
11-
gopkg.in/yaml.v2 v2.2.8
8+
gopkg.in/yaml.v2 v2.2.8 // indirect
129
)

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
22
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
33
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4-
github.com/launchdarkly/eventsource v0.0.0-20190617224151-6b837031c9ca h1:0RzZ6zhhZtjksMG/uea93SH1PYItuHaxByioaEePUks=
5-
github.com/launchdarkly/eventsource v0.0.0-20190617224151-6b837031c9ca/go.mod h1:y6+/PY1Az/AQyjCMsFt5mOZq1tfM0/KOQRS4f0pVe3M=
64
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
75
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
6+
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
87
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
98
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
109
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
10+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1111
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
12-
gopkg.in/launchdarkly/go-sdk-common.v1 v1.0.0-20200204015611-d48d1b4f4e70 h1:P1LaXpioVaqT2ltbaIsNBcigVLzj/7NEiOKzersfuEQ=
13-
gopkg.in/launchdarkly/go-sdk-common.v1 v1.0.0-20200204015611-d48d1b4f4e70/go.mod h1:2kE5FCTDQ53bqRSOfJpE5fdiAQYiN9LESONDNyEBFjI=
1412
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
1513
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
1614
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

vendor/github.com/davecgh/go-spew/LICENSE

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)