Skip to content

Commit 2cd6954

Browse files
prepare 2.5.0 release (#20)
1 parent b0258fd commit 2cd6954

File tree

8 files changed

+29
-21
lines changed

8 files changed

+29
-21
lines changed

.circleci/config.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@ workflows:
77
workflow:
88
jobs:
99
- go-test:
10-
name: Go 1.15
11-
docker-image: circleci/golang:1.15
10+
name: Go 1.17
11+
docker-image: cimg/go:1.17
12+
run-lint: true
1213
with-coverage: true
14+
- go-test:
15+
name: Go 1.16
16+
docker-image: cimg/go:1.16
17+
- go-test:
18+
name: Go 1.15
19+
docker-image: cimg/go:1.15
1320
- go-test:
1421
name: Go 1.14
15-
docker-image: circleci/golang:1.14
22+
docker-image: cimg/go:1.14
1623
- go-test-windows:
1724
name: Windows
1825
- benchmarks
@@ -24,9 +31,7 @@ jobs:
2431
type: string
2532
run-lint:
2633
type: boolean
27-
default: true
28-
# We are currently linting in all Go versions, but this parameter lets us turn it off for some, in
29-
# case we need to support more versions than a single version of golangci-lint is compatible with
34+
default: false
3035
with-coverage:
3136
type: boolean
3237
default: false
@@ -111,7 +116,7 @@ jobs:
111116

112117
benchmarks:
113118
docker:
114-
- image: circleci/golang:1.15
119+
- image: cimg/go:1.15
115120
environment:
116121
CIRCLE_ARTIFACTS: /tmp/circle-artifacts
117122

.golangci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ linters:
1818
- godox
1919
- gofmt
2020
- goimports
21-
- golint
2221
- gosec
2322
- gosimple
2423
- govet
2524
- ineffassign
26-
- interfacer
2725
- lll
2826
- megacheck
2927
- misspell
3028
- nakedret
3129
- nolintlint
3230
- prealloc
31+
- revive
3332
- staticcheck
3433
- structcheck
3534
- stylecheck

.ldrelease/config.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1+
version: 2
2+
13
repo:
24
public: go-sdk-common
35
private: go-sdk-common-private
46

5-
template:
6-
name: go
7-
env:
8-
LD_RELEASE_GO_IMPORT_PATH: gopkg.in/launchdarkly/go-sdk-common.v2
7+
jobs:
8+
- docker:
9+
image: golang:1.14-buster
10+
template:
11+
name: go
12+
env:
13+
LD_RELEASE_GO_IMPORT_PATH: gopkg.in/launchdarkly/go-sdk-common.v2
914

10-
releasableBranches:
15+
branches:
1116
- name: v2
1217
description: 2.x - for Go SDK 5+
1318
- name: v1

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to this project
22

3-
LaunchDarkly has published an [SDK contributor's guide](https://docs.launchdarkly.com/docs/sdk-contributors-guide) that provides a detailed explanation of how our SDKs work. See below for additional information on how to contribute to this project.
3+
LaunchDarkly has published an [SDK contributor's guide](https://docs.launchdarkly.com/sdk/concepts/contributors-guide) that provides a detailed explanation of how our SDKs work. See below for additional information on how to contribute to this project.
44

55
## Submitting bug reports and feature requests
66

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
GOLANGCI_LINT_VERSION=v1.27.0
2+
GOLANGCI_LINT_VERSION=v1.42.1
33

44
LINTER=./bin/golangci-lint
55
LINTER_VERSION_FILE=./bin/.golangci-lint-version-$(GOLANGCI_LINT_VERSION)
@@ -37,8 +37,7 @@ test-easyjson: build-easyjson
3737
go test -tags $(EASYJSON_TAG) -race -v ./...
3838

3939
test-coverage: $(COVERAGE_PROFILE_RAW)
40-
if [ -z "$(which go-coverage-enforcer)" ]; then go install github.com/launchdarkly-labs/go-coverage-enforcer; fi
41-
go-coverage-enforcer $(COVERAGE_ENFORCER_FLAGS) -outprofile $(COVERAGE_PROFILE_FILTERED) $(COVERAGE_PROFILE_RAW)
40+
go run github.com/launchdarkly-labs/go-coverage-enforcer@latest $(COVERAGE_ENFORCER_FLAGS) -outprofile $(COVERAGE_PROFILE_FILTERED) $(COVERAGE_PROFILE_RAW)
4241
go tool cover -html $(COVERAGE_PROFILE_FILTERED) -o $(COVERAGE_PROFILE_FILTERED_HTML)
4342
go tool cover -html $(COVERAGE_PROFILE_RAW) -o $(COVERAGE_PROFILE_RAW_HTML)
4443

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ We encourage pull requests and other contributions from the community. Check out
3737
* Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
3838
* Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
3939
* Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
40-
* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Check out [our documentation](https://docs.launchdarkly.com/docs) for a complete list.
40+
* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.
4141
* Explore LaunchDarkly
4242
* [launchdarkly.com](https://www.launchdarkly.com/ "LaunchDarkly Main Website") for more information
4343
* [docs.launchdarkly.com](https://docs.launchdarkly.com/ "LaunchDarkly Documentation") for our documentation and SDK reference guides

lduser/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (u User) GetKey() string {
105105
// GetSecondaryKey returns the secondary key of the user, if any.
106106
//
107107
// This affects feature flag targeting
108-
// (https://docs.launchdarkly.com/docs/targeting-users#section-targeting-rules-based-on-user-attributes)
108+
// (https://docs.launchdarkly.com/home/flags/targeting-users#targeting-rules-based-on-user-attributes)
109109
// as follows: if you have chosen to bucket users by a specific attribute, the secondary key (if set)
110110
// is used to further distinguish between users who are otherwise identical according to that attribute.
111111
func (u User) GetSecondaryKey() ldvalue.OptionalString {

lduser/user_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type UserBuilder interface {
3939
// Secondary sets the secondary key attribute for the user being built.
4040
//
4141
// This affects feature flag targeting
42-
// (https://docs.launchdarkly.com/docs/targeting-users#section-targeting-rules-based-on-user-attributes)
42+
// (https://docs.launchdarkly.com/home/flags/targeting-users#targeting-rules-based-on-user-attributes)
4343
// as follows: if you have chosen to bucket users by a specific attribute, the secondary key (if set)
4444
// is used to further distinguish between users who are otherwise identical according to that attribute.
4545
Secondary(value string) UserBuilderCanMakeAttributePrivate

0 commit comments

Comments
 (0)