From b84523c0aef3f60789a13148c29bfb8b0913991b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 11 Nov 2024 11:00:59 +0100 Subject: [PATCH] Fix build issue with vendored sources Fix a build issue when `go mod vendor` was used to vendor all the sources. This now includes Mage (`github.com/magefile/mage/mage`), so that the build tool itself can be built too. --- internal/tools/tools.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/tools/tools.go b/internal/tools/tools.go index d4ad233b..5cf91523 100644 --- a/internal/tools/tools.go +++ b/internal/tools/tools.go @@ -10,4 +10,9 @@ import ( // Go code generators: _ "github.com/deepmap/oapi-codegen/cmd/oapi-codegen" _ "github.com/golang/mock/mockgen" + + // Our build tool. Normally this isn't necessary, but it's needed to be able + // to build the tool when `go mod vendor` has been used to vendor the + // dependencies. + _ "github.com/magefile/mage/mage" )