Skip to content

Commit 569ebfb

Browse files
authored
Merge pull request #4 from jeroenrinzema/main
Removed deprecated GOPATH checks
2 parents 33c6fee + f535b9e commit 569ebfb

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Diff for: Makefile

-19
Original file line numberDiff line numberDiff line change
@@ -227,25 +227,6 @@ TAR ?= tar
227227
# Ensure we have an unambiguous GOPATH.
228228
GOPATH := $(shell $(GO) env GOPATH)
229229

230-
ifneq "$(or $(findstring :,$(GOPATH)),$(findstring ;,$(GOPATH)))" ""
231-
$(error GOPATHs with multiple entries are not supported)
232-
endif
233-
234-
GOPATH := $(realpath $(GOPATH))
235-
ifeq "$(strip $(GOPATH))" ""
236-
$(error GOPATH is not set and could not be automatically determined)
237-
endif
238-
239-
ifeq "$(filter $(GOPATH)%,$(CURDIR))" ""
240-
$(error Current directory "$(CURDIR)" is not within GOPATH "$(GOPATH)")
241-
endif
242-
243-
ifeq "$(GOPATH)" "/"
244-
$(error GOPATH=/ is not supported)
245-
endif
246-
247-
$(info GOPATH set to $(GOPATH))
248-
249230
# We install our vendored tools to a directory within this repository to avoid
250231
# overwriting any user-installed binaries of the same name in the default GOBIN.
251232
GO_INSTALL := GOBIN='$(abspath bin)' GOFLAGS= $(GO) install

0 commit comments

Comments
 (0)