Permalink
Browse files

Switch to using go dep for dependency management

  • Loading branch information...
amitsaha committed Mar 19, 2017
1 parent 9adfc36 commit 654f52f0cf1cec7bb1fd994bbc75fd8839a2d43c
Showing 1,495 changed files with 578,584 additions and 66,778 deletions.
View
101 lock.json
@@ -0,0 +1,101 @@
+{
+ "memo": "0442be654e602a240ebe6efbdec385882bbbdd8e6090d634d30ddd89df02526d",
+ "projects": [
+ {
+ "name": "github.com/golang/protobuf",
+ "branch": "master",
+ "revision": "c9c7427a2a70d2eb3bafa0ab2dc163e45f143317",
+ "packages": [
+ "proto"
+ ]
+ },
+ {
+ "name": "github.com/google/go-github",
+ "branch": "master",
+ "revision": "67f700645e97e82b8cf282ece3508805438be24f",
+ "packages": [
+ "github"
+ ]
+ },
+ {
+ "name": "github.com/google/go-querystring",
+ "branch": "master",
+ "revision": "53e6ce116135b80d037921a7fdd5138cf32d7a8a",
+ "packages": [
+ "query"
+ ]
+ },
+ {
+ "name": "github.com/mitchellh/go-homedir",
+ "branch": "master",
+ "revision": "b8bc1bf767474819792c23f32d8286a45736f1c6",
+ "packages": [
+ "."
+ ]
+ },
+ {
+ "name": "github.com/spf13/afero",
+ "branch": "master",
+ "revision": "9be650865eab0c12963d8753212f4f9c66cdcf12",
+ "packages": [
+ ".",
+ "mem"
+ ]
+ },
+ {
+ "name": "github.com/xanzy/go-gitlab",
+ "version": "v0.4.0",
+ "revision": "189ae0a841d3d0b3999ee2ae5d53203c3809a2bc",
+ "packages": [
+ "."
+ ]
+ },
+ {
+ "name": "golang.org/x/net",
+ "branch": "master",
+ "revision": "a6577fac2d73be281a500b310739095313165611",
+ "packages": [
+ "context"
+ ]
+ },
+ {
+ "name": "golang.org/x/oauth2",
+ "branch": "master",
+ "revision": "30fcca6531eb4bb278493c9fb299295b3b145934",
+ "packages": [
+ ".",
+ "internal"
+ ]
+ },
+ {
+ "name": "golang.org/x/text",
+ "branch": "master",
+ "revision": "f28f36722d5ef2f9655ad3de1f248e3e52ad5ebd",
+ "packages": [
+ "internal/gen",
+ "internal/triegen",
+ "internal/ucd",
+ "transform",
+ "unicode/cldr",
+ "unicode/norm"
+ ]
+ },
+ {
+ "name": "google.golang.org/appengine",
+ "version": "v1.0.0",
+ "revision": "150dc57a1b433e64154302bdc40b6bb8aefa313a",
+ "packages": [
+ ".",
+ "internal",
+ "internal/app_identity",
+ "internal/base",
+ "internal/datastore",
+ "internal/log",
+ "internal/modules",
+ "internal/remote_api",
+ "internal/urlfetch",
+ "urlfetch"
+ ]
+ }
+ ]
+}
View
@@ -0,0 +1 @@
+{}
View
@@ -1,6 +1,7 @@
package main
import (
+ "context"
"github.com/google/go-github/github"
"github.com/xanzy/go-gitlab"
"log"
@@ -39,9 +40,10 @@ func getRepositories(client interface{}, service string, githubRepoType string,
var repositories []*Repository
if service == "github" {
+ ctx := context.Background()
options := github.RepositoryListOptions{Type: githubRepoType}
for {
- repos, resp, err := client.(*github.Client).Repositories.List("", &options)
+ repos, resp, err := client.(*github.Client).Repositories.List(ctx, "", &options)
if err == nil {
for _, repo := range repos {
namespace := strings.Split(*repo.FullName, "/")[0]
Oops, something went wrong.

0 comments on commit 654f52f

Please sign in to comment.