2016年10月23日日曜日

GoogleDriveのクライアント

Windowsでもコンパイルできるskickaですが久しぶりにupdateしてみたら
コンパイルできず

C:\mydir\skicka>go get -v github.com/google/skicka
github.com/google/skicka (download)
github.com/cheggaaa/pb (download)
Fetching https://google.golang.org/api/drive/v2?go-get=1
Parsing meta tags from https://google.golang.org/api/drive/v2?go-get=1 (status code 200)
get "google.golang.org/api/drive/v2": found meta tag main.metaImport{Prefix:"google.golang.org/api", VCS:"git", RepoRoot:"https://code.googlesource.com/google-api-go-client"} at https://google.golang.org/api/drive/v2?go-get=1
get "google.golang.org/api/drive/v2": verifying non-authoritative meta tag
Fetching https://google.golang.org/api?go-get=1
Parsing meta tags from https://google.golang.org/api?go-get=1 (status code 200)
google.golang.org/api (download)
Fetching https://golang.org/x/net/context?go-get=1
Parsing meta tags from https://golang.org/x/net/context?go-get=1 (status code 200)
get "golang.org/x/net/context": found meta tag main.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/context?go-get=1
get "golang.org/x/net/context": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
Fetching https://golang.org/x/net/context/ctxhttp?go-get=1
Parsing meta tags from https://golang.org/x/net/context/ctxhttp?go-get=1 (status code 200)
get "golang.org/x/net/context/ctxhttp": found meta tag main.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/context/ctxhttp?go-get=1
get "golang.org/x/net/context/ctxhttp": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
Fetching https://google.golang.org/api/googleapi?go-get=1
Parsing meta tags from https://google.golang.org/api/googleapi?go-get=1 (status code 200)
get "google.golang.org/api/googleapi": found meta tag main.metaImport{Prefix:"google.golang.org/api", VCS:"git", RepoRoot:"https://code.googlesource.com/google-api-go-client"} at https://google.golang.org/api/googleapi?go-get=1
get "google.golang.org/api/googleapi": verifying non-authoritative meta tag
Fetching https://google.golang.org/api?go-get=1
Parsing meta tags from https://google.golang.org/api?go-get=1 (status code 200)
Fetching https://golang.org/x/crypto/pbkdf2?go-get=1
Parsing meta tags from https://golang.org/x/crypto/pbkdf2?go-get=1 (status code 200)
get "golang.org/x/crypto/pbkdf2": found meta tag main.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/pbkdf2?go-get=1
get "golang.org/x/crypto/pbkdf2": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
Fetching https://golang.org/x/oauth2?go-get=1
Parsing meta tags from https://golang.org/x/oauth2?go-get=1 (status code 200)
get "golang.org/x/oauth2": found meta tag main.metaImport{Prefix:"golang.org/x/oauth2", VCS:"git", RepoRoot:"https://go.googlesource.com/oauth2"} at https://golang.org/x/oauth2?go-get=1
golang.org/x/oauth2 (download)
Fetching https://gopkg.in/gcfg.v1?go-get=1
Parsing meta tags from https://gopkg.in/gcfg.v1?go-get=1 (status code 200)
get "gopkg.in/gcfg.v1": found meta tag main.metaImport{Prefix:"gopkg.in/gcfg.v1", VCS:"git", RepoRoot:"https://gopkg.in/gcfg.v1"} at https://gopkg.in/gcfg.v1?go-get=1
gopkg.in/gcfg.v1 (download)
Fetching https://gopkg.in/warnings.v0?go-get=1
Parsing meta tags from https://gopkg.in/warnings.v0?go-get=1 (status code 200)
get "gopkg.in/warnings.v0": found meta tag main.metaImport{Prefix:"gopkg.in/warnings.v0", VCS:"git", RepoRoot:"https://gopkg.in/warnings.v0"} at https://gopkg.in/warnings.v0?go-get=1
gopkg.in/warnings.v0 (download)
github.com/cheggaaa/pb
golang.org/x/net/context
google.golang.org/api/googleapi/internal/uritemplates
golang.org/x/crypto/pbkdf2
gopkg.in/gcfg.v1/token
golang.org/x/net/context/ctxhttp
google.golang.org/api/googleapi
# golang.org/x/net/context/ctxhttp
src\golang.org\x\net\context\ctxhttp\ctxhttp_pre17.go:36: req.Cancel undefined (type *http.Request has no field or method Cancel)
golang.org/x/oauth2/internal
gopkg.in/gcfg.v1/scanner
# google.golang.org/api/googleapi
src\google.golang.org\api\googleapi\googleapi.go:289: u.RawPath undefined (type *url.URL has no field or method RawPath)
gopkg.in/gcfg.v1/types
gopkg.in/warnings.v0
gopkg.in/gcfg.v1
golang.org/x/oauth2

C:\mydir\skicka>go build  github.com/google/skicka
# golang.org/x/net/context/ctxhttp
src\golang.org\x\net\context\ctxhttp\ctxhttp_pre17.go:36: req.Cancel undefined (type *http.Request has no field or method Cancel)
# google.golang.org/api/googleapi
src\google.golang.org\api\googleapi\googleapi.go:289: u.RawPath undefined (type *url.URL has no field or method RawPath)

C:\mydir\skicka>pause
続行するには何かキーを押してください . . .

まぁ結論から言うと goのバージョンが1.4.2だったから 今の1.7.3にすればOKでした

0 件のコメント: