From c54ddc460d235aaf5303a4fe2add88d7d432bca8 Mon Sep 17 00:00:00 2001
From: Michael Venezia <mvenezia@gmail.com>
Date: Fri, 2 Aug 2019 17:34:25 -0400
Subject: [PATCH] Adjusting Makefile so that `golint` will compile

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3bfba339..820e7ea3 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ PROJ=dex
 ORG_PATH=github.com/dexidp
 REPO_PATH=$(ORG_PATH)/$(PROJ)
 export PATH := $(PWD)/bin:$(PATH)
+THIS_DIRECTORY:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
 
 VERSION ?= $(shell ./scripts/git-version)
 
@@ -73,7 +74,7 @@ bin/protoc-gen-go:
 	@go install -v $(REPO_PATH)/vendor/github.com/golang/protobuf/protoc-gen-go
 
 bin/golint:
-	@go install -v $(REPO_PATH)/vendor/golang.org/x/lint/golint
+	@go install -v $(THIS_DIRECTORY)/vendor/golang.org/x/lint/golint
 
 clean:
 	@rm -rf bin/
-- 
GitLab