From 78c8ad2b7cedf4c8daae8972c3b72a9f918d6497 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Sun, 8 Oct 2023 00:58:06 -0600 Subject: [PATCH] Restrict godeps to the vendor directory Signed-off-by: Jonathon Anderson --- Variables.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Variables.mk b/Variables.mk index 504f62e0..8ff5426a 100644 --- a/Variables.mk +++ b/Variables.mk @@ -81,7 +81,7 @@ WWCLIENTDIR ?= /warewulf CONFIG := $(shell pwd) # helper functions -godeps=$(shell go list -deps -f '{{if not .Standard}}{{ $$dep := . }}{{range .GoFiles}}{{$$dep.Dir}}/{{.}} {{end}}{{end}}' $(1) | sed "s%${PWD}/%%g") +godeps=$(shell go list -mod vendor -deps -f '{{if not .Standard}}{{ $$dep := . }}{{range .GoFiles}}{{$$dep.Dir}}/{{.}} {{end}}{{end}}' $(1) | sed "s%${PWD}/%%g") # use GOPROXY for older git clients and speed up downloads GOPROXY ?= https://proxy.golang.org