You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/04/24 19:00:18 UTC

[GitHub] dubee closed pull request #281: Install golint package from the source code

dubee closed pull request #281: Install golint package from the source code
URL: https://github.com/apache/incubator-openwhisk-cli/pull/281
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/build.gradle b/build.gradle
index b8bfb346..a9a964d7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -173,7 +173,9 @@ resolveBuildDependencies.dependsOn(goI18n)
        The get step is needed to be sure a golint binary is available to run.
  */
 task getGoLint(type: com.github.blindpirate.gogradle.Go) {
-    go 'get -u github.com/golang/lint/golint'
+    run 'mkdir -p $GOPATH/src/golang.org/x/'
+    run 'git clone --depth 1 https://github.com/golang/lint.git $GOPATH/src/golang.org/x/lint'
+    go 'get -u golang.org/x/lint/golint'
 }
 
 task goLint(type: com.github.blindpirate.gogradle.Go, dependsOn: getGoLint) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services