Skip to content

Commit 9986ea6

Browse files
authored
Added modules support; Added semantic import versioning (#336)
1 parent 7d87b1b commit 9986ea6

Some content is hidden

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

49 files changed

+268
-86
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,30 @@ jobs:
55
build:
66
name: Build
77
runs-on: ubuntu-latest
8-
env:
9-
GOPATH: ${{ github.workspace }}/go
108
strategy:
119
matrix:
1210
go: [1.11, 1.12, 1.13]
13-
steps:
1411

12+
steps:
1513
- name: Set up Go ${{ matrix.go }}
1614
uses: actions/setup-go@v1
1715
with:
1816
go-version: ${{ matrix.go }}
19-
id: go
2017

21-
- name: Check out code into GOPATH
18+
- name: Check out code
2219
uses: actions/checkout@v2
23-
with:
24-
path: go/src/firebase.google.com/go
25-
26-
- name: Get dependencies
27-
run: go get -t -v $(go list ./... | grep -v integration)
2820

2921
- name: Run Linter
3022
run: |
31-
go get golang.org/x/lint/golint
32-
$GOPATH/bin/golint -set_exit_status firebase.google.com/go/...
23+
go get -u golang.org/x/lint/golint
24+
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
25+
$GOLINT -set_exit_status ./...
3326
3427
- name: Run Unit Tests
3528
if: success() || failure()
36-
run: go test -v -race -test.short firebase.google.com/go/...
29+
run: go test -v -race -test.short ./...
3730

3831
- name: Run Formatter
39-
working-directory: ./go/src/firebase.google.com/go
4032
if: matrix.go != '1.11'
4133
run: |
4234
if [[ ! -z "$(gofmt -l -s .)" ]]; then
@@ -46,4 +38,4 @@ jobs:
4638
fi
4739
4840
- name: Run Static Analyzer
49-
run: go vet -v firebase.google.com/go/...
41+
run: go vet -v ./...

auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"strings"
2424
"time"
2525

26-
"firebase.google.com/go/internal"
26+
"firebase.google.com/go/v4/internal"
2727
"google.golang.org/api/transport"
2828
)
2929

auth/auth_appengine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package auth
1919
import (
2020
"context"
2121

22-
"firebase.google.com/go/internal"
22+
"firebase.google.com/go/v4/internal"
2323
"google.golang.org/appengine"
2424
)
2525

auth/auth_std.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package auth // import "firebase.google.com/go/auth"
1919
import (
2020
"context"
2121

22-
"firebase.google.com/go/internal"
22+
"firebase.google.com/go/v4/internal"
2323
)
2424

2525
func newCryptoSigner(ctx context.Context, conf *internal.AuthConfig) (cryptoSigner, error) {

auth/auth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"testing"
2828
"time"
2929

30-
"firebase.google.com/go/internal"
30+
"firebase.google.com/go/v4/internal"
3131
"golang.org/x/oauth2/google"
3232
"google.golang.org/api/option"
3333
"google.golang.org/api/transport"

auth/export_users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"net/url"
2222
"strconv"
2323

24-
"firebase.google.com/go/internal"
24+
"firebase.google.com/go/v4/internal"
2525
"google.golang.org/api/iterator"
2626
)
2727

auth/hash/hash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"errors"
2323
"fmt"
2424

25-
"firebase.google.com/go/internal"
25+
"firebase.google.com/go/v4/internal"
2626
)
2727

2828
// Bcrypt represents the BCRYPT hash algorithm.

auth/hash/hash_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
"reflect"
2020
"testing"
2121

22-
"firebase.google.com/go/auth"
23-
"firebase.google.com/go/internal"
22+
"firebase.google.com/go/v4/auth"
23+
"firebase.google.com/go/v4/internal"
2424
)
2525

2626
var (

auth/import_users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"errors"
2121
"fmt"
2222

23-
"firebase.google.com/go/internal"
23+
"firebase.google.com/go/v4/internal"
2424
)
2525

2626
const maxImportUsers = 1000

auth/provider_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"strconv"
2424
"strings"
2525

26-
"firebase.google.com/go/internal"
26+
"firebase.google.com/go/v4/internal"
2727
"google.golang.org/api/iterator"
2828
)
2929

0 commit comments

Comments
 (0)