diff --git a/go.mod b/go.mod index 544eb3fe..b386253e 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/cloudfoundry/yarn-cnb require ( github.com/buildpack/libbuildpack v1.11.0 - github.com/cloudfoundry/dagger v0.0.0-20190401210947-21561420a11a + github.com/cloudfoundry/dagger v0.0.0-20190401212155-44a90aadbea5 github.com/cloudfoundry/libcfbuildpack v1.48.0 github.com/cloudfoundry/nodejs-cnb v0.0.3-0.20181226182428-89d9efe0a59b github.com/golang/mock v1.2.0 diff --git a/go.sum b/go.sum index 7c358b1f..7877c221 100644 --- a/go.sum +++ b/go.sum @@ -13,6 +13,8 @@ github.com/cloudfoundry/dagger v0.0.0-20190401185832-90a19a94802e h1:OrhLEPKVYW0 github.com/cloudfoundry/dagger v0.0.0-20190401185832-90a19a94802e/go.mod h1:+csOcW7GEqDwsV/MxLuXL0qVIgzjm6lbUbP2JXe5R8c= github.com/cloudfoundry/dagger v0.0.0-20190401210947-21561420a11a h1:05dQd0JGdFv20NL6blbuHH4x0VwrH5tWhR0Ny9zcVWI= github.com/cloudfoundry/dagger v0.0.0-20190401210947-21561420a11a/go.mod h1:mZHx1IXvGU3/bi7bsXTCJpg7PDnFheNL5lfcLaWEh7Q= +github.com/cloudfoundry/dagger v0.0.0-20190401212155-44a90aadbea5 h1:Liw8kS2L2/ccws7Ov0vmEQmjc9ZO5TJHiTpN8zLxboQ= +github.com/cloudfoundry/dagger v0.0.0-20190401212155-44a90aadbea5/go.mod h1:mZHx1IXvGU3/bi7bsXTCJpg7PDnFheNL5lfcLaWEh7Q= github.com/cloudfoundry/libcfbuildpack v1.29.0/go.mod h1:OEwAwCqppAMwWrcrnxE0j0llq5HcvQHrUa6J5n8XMMc= github.com/cloudfoundry/libcfbuildpack v1.44.0 h1:DeQlNZJ5lpRtwRPXX3CJlVhHKTUtuVKUMuzDnF9Qv8c= github.com/cloudfoundry/libcfbuildpack v1.44.0/go.mod h1:C2AOm63Ca1GIBP7NdVhd8Q2gKenz600PVWqtOAbrN4o= diff --git a/vendor/github.com/cloudfoundry/dagger/dagger.go b/vendor/github.com/cloudfoundry/dagger/dagger.go index 60375d72..4787d310 100644 --- a/vendor/github.com/cloudfoundry/dagger/dagger.go +++ b/vendor/github.com/cloudfoundry/dagger/dagger.go @@ -69,7 +69,7 @@ func GetClient(ctx context.Context) *github.Client { tc := oauth2.NewClient(ctx, ts) client := github.NewClient(http.DefaultClient) - if git_token != "" { + if git_token == "" { fmt.Println("Using unauthorized github api, consider setting the GIT_TOKEN environment variable") fmt.Println("More info on Github tokens here: https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line") client = github.NewClient(tc) diff --git a/vendor/modules.txt b/vendor/modules.txt index 7780853e..367a7171 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -14,7 +14,7 @@ github.com/buildpack/libbuildpack/buildpack github.com/buildpack/libbuildpack/platform github.com/buildpack/libbuildpack/services github.com/buildpack/libbuildpack/stack -# github.com/cloudfoundry/dagger v0.0.0-20190401210947-21561420a11a +# github.com/cloudfoundry/dagger v0.0.0-20190401212155-44a90aadbea5 github.com/cloudfoundry/dagger # github.com/cloudfoundry/libcfbuildpack v1.48.0 github.com/cloudfoundry/libcfbuildpack/build