File: 0001-Use_old_imports.patch

package info (click to toggle)
golang-golang-x-oauth2 0.0~git20161103.0.36bc617-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 372 kB
  • sloc: makefile: 14
file content (23 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Use legacy import paths for Google stuff.
--- a/google/default.go
+++ b/google/default.go
@@ -14,7 +14,7 @@
 	"path/filepath"
 	"runtime"
 
-	"cloud.google.com/go/compute/metadata"
+	"google.golang.org/cloud/compute/metadata"
 	"golang.org/x/net/context"
 	"golang.org/x/oauth2"
 	"golang.org/x/oauth2/jwt"
--- a/google/google.go
+++ b/google/google.go
@@ -21,7 +21,7 @@
 	"strings"
 	"time"
 
-	"cloud.google.com/go/compute/metadata"
+	"google.golang.org/cloud/compute/metadata"
 	"golang.org/x/oauth2"
 	"golang.org/x/oauth2/jwt"
 )