From 5724298c6bd3c441e6cd4155ac188eba71fe2943 Mon Sep 17 00:00:00 2001 From: Nurahmadie Date: Fri, 4 Apr 2014 01:28:20 +0000 Subject: [PATCH] A workaround to use fudanchii/raw-request branch without changing the import path. At least until https://github.com/plouc/go-gitlab-client/pull/8 accepted or Drone officially fork it to `drone/go-gitlab` or when we have package management which can do something like this: gom 'github.com/plouc/go-gitlab-client', :github => 'fudanchii/go-gitlab-client', :branch => 'raw-request' --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4548d116..bfe9d94c 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ PKGS := $(addprefix github.com/drone/drone/pkg/,$(PKGS)) all: embed build -deps: +deps: go-gitlab-client [ -d $$GOPATH/src/code.google.com/p/go ] || hg clone -u default https://code.google.com/p/go $$GOPATH/src/code.google.com/p/go [ -d $$GOPATH/src/github.com/dotcloud/docker ] || git clone git://github.com/dotcloud/docker $$GOPATH/src/github.com/dotcloud/docker go get code.google.com/p/go.crypto/bcrypt @@ -42,7 +42,6 @@ deps: #go get github.com/dotcloud/docker/pkg/term go get github.com/drone/go-github/github go get github.com/drone/go-bitbucket/bitbucket - go get github.com/plouc/go-gitlab-client go get github.com/GeertJohan/go.rice go get github.com/GeertJohan/go.rice/rice go get github.com/go-sql-driver/mysql @@ -98,3 +97,7 @@ dpkg: run: bin/droned --port=":8080" --datasource="drone.sqlite" + +go-gitlab-client: + rm -rf $$GOPATH/src/github.com/plouc/go-gitlab-client + git clone -b raw-request https://github.com/fudanchii/go-gitlab-client $$GOPATH/src/github.com/plouc/go-gitlab-client