Skip to content

Commit 23a1f17

Browse files
Merge dev into master
2 parents bb055ed + f842381 commit 23a1f17

File tree

12 files changed

+143
-67
lines changed

12 files changed

+143
-67
lines changed

.github/workflows/ci.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,23 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
go: [1.15, 1.16, 1.17]
11+
go: [1.17, 1.18, 1.19]
1212

1313
steps:
1414
- name: Set up Go ${{ matrix.go }}
15-
uses: actions/setup-go@v1
15+
uses: actions/setup-go@v3
1616
with:
1717
go-version: ${{ matrix.go }}
1818

1919
- name: Install golint
20-
run: go get golang.org/x/lint/golint
20+
run: go install golang.org/x/lint/golint@latest
2121

2222
- name: Check out code
2323
uses: actions/checkout@v2
2424

2525
- name: Run Linter
2626
run: |
27-
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
28-
$GOLINT -set_exit_status ./...
27+
golint -set_exit_status ./...
2928
3029
- name: Run Unit Tests
3130
if: success() || failure()
@@ -50,10 +49,10 @@ jobs:
5049
GO111MODULE: off
5150

5251
steps:
53-
- name: Set up Go 1.16
54-
uses: actions/setup-go@v1
52+
- name: Set up Go 1.17
53+
uses: actions/setup-go@v3
5554
with:
56-
go-version: 1.16
55+
go-version: 1.17
5756

5857
- name: Check out code into GOPATH
5958
uses: actions/checkout@v2

.github/workflows/nightly.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929

3030
steps:
3131
- name: Set up Go
32-
uses: actions/setup-go@v1
32+
uses: actions/setup-go@v3
3333
with:
34-
go-version: 1.15
34+
go-version: 1.17
3535

3636
- name: Install golint
37-
run: go get golang.org/x/lint/golint
37+
run: go install golang.org/x/lint/golint@latest
3838

3939
- name: Check out code
4040
uses: actions/checkout@v2
@@ -43,8 +43,7 @@ jobs:
4343

4444
- name: Run Linter
4545
run: |
46-
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
47-
$GOLINT -set_exit_status ./...
46+
golint -set_exit_status ./...
4847
4948
- name: Run Tests
5049
run: ./.github/scripts/run_all_tests.sh

.github/workflows/release.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
# via the 'ref' client parameter.
4141
steps:
4242
- name: Set up Go
43-
uses: actions/setup-go@v1
43+
uses: actions/setup-go@v3
4444
with:
45-
go-version: 1.15
45+
go-version: 1.17
4646

4747
- name: Install golint
48-
run: go get golang.org/x/lint/golint
48+
run: go install golang.org/x/lint/golint@latest
4949

5050
- name: Check out code
5151
uses: actions/checkout@v2
@@ -54,8 +54,7 @@ jobs:
5454

5555
- name: Run Linter
5656
run: |
57-
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
58-
$GOLINT -set_exit_status ./...
57+
golint -set_exit_status ./...
5958
6059
- name: Run Tests
6160
run: ./.github/scripts/run_all_tests.sh

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ requests, code review feedback, and also pull requests.
4242
## Supported Go Versions
4343

4444
The Admin Go SDK is compatible with at least the three most recent, major Go releases.
45-
We currently support Go v1.15 and higher.
45+
We currently support Go v1.17 and higher.
4646
[Continuous integration](https://github.com/firebase/firebase-admin-go/actions) system
47-
tests the code on Go v1.15 through v1.17.
47+
tests the code on Go v1.17 through v1.19.
4848

4949
## Documentation
5050

auth/hash/hash.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (s StandardScrypt) Config() (internal.HashConfig, error) {
6464
"dkLen": s.DerivedKeyLength,
6565
"blockSize": s.BlockSize,
6666
"parallelization": s.Parallelization,
67-
"memoryCost": s.MemoryCost,
67+
"cpuMemCost": s.MemoryCost,
6868
}, nil
6969
}
7070

auth/hash/hash_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var validHashes = []struct {
4848
"blockSize": 1,
4949
"dkLen": 2,
5050
"parallelization": 3,
51-
"memoryCost": 4,
51+
"cpuMemCost": 4,
5252
},
5353
},
5454
{

auth/user_mgt_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -2051,9 +2051,10 @@ type mockAuthServer struct {
20512051
// echoServer takes either a []byte or a string filename, or an object.
20522052
//
20532053
// echoServer returns a server whose client will reply with depending on the input type:
2054-
// * []byte: the []byte it got
2055-
// * object: the marshalled object, in []byte form
2056-
// * nil: "{}" empty json, in case we aren't interested in the returned value, just the marshalled request
2054+
// - []byte: the []byte it got
2055+
// - object: the marshalled object, in []byte form
2056+
// - nil: "{}" empty json, in case we aren't interested in the returned value, just the marshalled request
2057+
//
20572058
// The marshalled request is available through s.rbody, s being the retuned server.
20582059
// It also returns a closing functions that has to be defer closed.
20592060
func echoServer(resp interface{}, t *testing.T) *mockAuthServer {

db/query_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// http://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,

firebase.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
var defaultAuthOverrides = make(map[string]interface{})
3939

4040
// Version of the Firebase Go Admin SDK.
41-
const Version = "4.8.0"
41+
const Version = "4.9.0"
4242

4343
// firebaseEnvName is the name of the environment variable with the Config.
4444
const firebaseEnvName = "FIREBASE_CONFIG"

go.mod

+26-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,32 @@
11
module firebase.google.com/go/v4
22

3-
go 1.15
3+
go 1.17
44

55
require (
66
cloud.google.com/go/firestore v1.6.1
7-
cloud.google.com/go/storage v1.21.0
8-
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a
9-
google.golang.org/api v0.73.0
10-
google.golang.org/appengine/v2 v2.0.1
7+
cloud.google.com/go/storage v1.26.0
8+
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1
9+
google.golang.org/api v0.96.0
10+
google.golang.org/appengine/v2 v2.0.2
11+
)
12+
13+
require (
14+
cloud.google.com/go v0.102.1 // indirect
15+
cloud.google.com/go/compute v1.7.0 // indirect
16+
cloud.google.com/go/iam v0.3.0 // indirect
17+
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
18+
github.com/golang/protobuf v1.5.2 // indirect
19+
github.com/google/go-cmp v0.5.8 // indirect
20+
github.com/google/uuid v1.3.0 // indirect
21+
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
22+
github.com/googleapis/gax-go/v2 v2.4.0 // indirect
23+
go.opencensus.io v0.23.0 // indirect
24+
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect
25+
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
26+
golang.org/x/text v0.3.7 // indirect
27+
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
28+
google.golang.org/appengine v1.6.7 // indirect
29+
google.golang.org/genproto v0.0.0-20220810155839-1856144b1d9c // indirect
30+
google.golang.org/grpc v1.48.0 // indirect
31+
google.golang.org/protobuf v1.28.1 // indirect
1132
)

0 commit comments

Comments
 (0)