Skip to content

Commit 1ee0e72

Browse files
authored
chore: Updating minimum go-sdk version to 1.13 (#352)
* Updating minimum go-sdk version to 1.13 * Updating readme.md
1 parent df1036c commit 1ee0e72

File tree

4 files changed

+16
-31
lines changed

4 files changed

+16
-31
lines changed

.github/workflows/go.yml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v3
20-
- uses: actions/setup-go@v2
20+
- uses: actions/setup-go@v3
2121
with:
2222
go-version: '1.13.15'
2323
- run: make install lint
@@ -26,44 +26,31 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v3
29-
- uses: actions/setup-go@v2
29+
- uses: actions/setup-go@v3
3030
with:
31-
go-version: '1.18'
32-
check-latest: true
31+
go-version: '>=1.19'
3332
- run: make cover
3433

3534
unit_test_legacy:
3635
runs-on: ubuntu-latest
37-
env:
38-
BUILD_DIR: ${{ github.workspace }}
39-
GOPATH: ${{ github.workspace }}
4036
steps:
4137
- uses: actions/checkout@v3
42-
- uses: actions/setup-go@v2
38+
- uses: actions/setup-go@v3
4339
with:
44-
go-version: '1.10.8'
45-
- run: |
46-
mkdir -p $GOPATH/src/github.com && pushd $GOPATH/src/github.com && ln -s $GOPATH optimizely/go-sdk && popd
47-
mkdir $GOPATH/src/github.com/twmb && cd $GOPATH/src/github.com/twmb && git clone https://github.com/twmb/murmur3.git && cd $BUILD_DIR
48-
pushd $GOPATH/src/github.com/twmb/murmur3 && git checkout v1.0.0 && popd
49-
mkdir $GOPATH/src/github.com/hashicorp && cd $GOPATH/src/github.com/hashicorp && git clone https://github.com/hashicorp/go-multierror.git && cd $BUILD_DIR
50-
pushd $GOPATH/src/github.com/hashicorp/go-multierror && git checkout v1.0.0 && popd
51-
mkdir $GOPATH/src/gopkg.in && cd $GOPATH/src/gopkg.in && git clone https://github.com/go-yaml/yaml.git && cd $BUILD_DIR
52-
mv $GOPATH/src/gopkg.in/yaml $GOPATH/src/gopkg.in/yaml.v2 && pushd $GOPATH/src/gopkg.in/yaml.v2 && git checkout v2.2.2 && popd
53-
go get -v -d ./...
54-
go get -d -v github.com/stretchr/testify
55-
pushd $GOPATH/src/github.com/stretchr/testify && git checkout v1.4.0 && popd
56-
make test
40+
go-version: '1.13'
41+
check-latest: true
42+
- run: make cover
5743

5844
unit_test_coverage:
5945
runs-on: ubuntu-latest
6046
env:
6147
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6248
steps:
6349
- uses: actions/checkout@v3
64-
- uses: actions/setup-go@v2
50+
- uses: actions/setup-go@v3
6551
with:
66-
go-version: '1.14.15'
52+
go-version: '1.17'
53+
check-latest: true
6754
- run: |
6855
make cover
6956
go get github.com/mattn/goveralls
@@ -73,10 +60,9 @@ jobs:
7360
runs-on: ubuntu-latest
7461
steps:
7562
- uses: actions/checkout@v3
76-
- uses: actions/setup-go@v2
63+
- uses: actions/setup-go@v3
7764
with:
78-
go-version: '1.18'
79-
check-latest: true
65+
go-version: '>=1.19'
8066
- run: make benchmark
8167

8268
integration_tests:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ We practice trunk-based development, and as such our default branch, `master` mi
2626
```
2727
module mymodule
2828
29-
go 1.12
29+
go 1.13
3030
3131
require (
32-
github.com/optimizely/go-sdk v1.0.0-rc1
32+
github.com/optimizely/go-sdk v1.8.3
3333
)
3434
```
3535

3636
If you are already using `go.mod` in your application you can run the following:
3737

3838
```
39-
go mod edit -require github.com/optimizely/go-sdk@v1.0.0-rc1
39+
go mod edit -require github.com/optimizely/go-sdk@v1.8.3
4040
```
4141

4242
NOTE:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/optimizely/go-sdk
22

3-
go 1.12
3+
go 1.13
44

55
require (
66
github.com/google/uuid v1.1.1

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=
54
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
65
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
76
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

0 commit comments

Comments
 (0)