Drop gomod-deps in favor of gomod-vendor

USES=go has gomod-vendor that does the same.  Let's not reinvent
the wheel.

Approved by:	mfechner, swills
Differential Revision:	https://reviews.freebsd.org/D29080
This commit is contained in:
Tobias Kortkamp 2021-03-07 09:53:07 +00:00
parent 2e9201abb6
commit c666516b93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567554
3 changed files with 1 additions and 14 deletions

View file

@ -203,10 +203,6 @@ post-patch:
@${CP} ${DISTDIR}/${DIST_SUBDIR}/prebuilt-x86_64.tar.xz ${WRKSRC}/out/docker/
@${CP} ${DISTDIR}/${DIST_SUBDIR}/prebuilt-arm.tar.xz ${WRKSRC}/out/docker/
gomod-deps: patch
(cd ${WRKSRC} && go mod vendor)
(cd ${WRKSRC} && modules2tuple vendor/modules.txt)
pre-build:
@cd ${WRKSRC} && go-bindata \
-pkg docker \

View file

@ -27,7 +27,7 @@ GROUPS= git
# for go dependencies
USE_GITHUB= nodefault
# generated with: make gomod-deps
# generated with: make gomod-vendor
# 38dd
GH_TUPLE= \
DataDog:dd-trace-go:v1.7.0:datadog_dd_trace_go/vendor/gopkg.in/DataDog/dd-trace-go.v1 \
@ -77,11 +77,6 @@ post-patch:
${CP} ${WRKSRC}/config.yml.sample ${WRKSRC}/config.yml
${REINPLACE_CMD} -e 's|VERSION_STRING :=.*|VERSION_STRING := v${PORTVERSION}|g' ${WRKSRC}/Makefile
# Build the go deps, use `pkg install modules2tuple`
gomod-deps: patch
(cd ${WRKSRC} && go mod vendor)
(cd ${WRKSRC} && modules2tuple vendor/modules.txt)
pre-build:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} build)

View file

@ -208,10 +208,6 @@ GO_TARGET= ./cmd/kas
PLIST_FILES= bin/kas
gomod-deps: patch
(cd ${WRKSRC} && go mod vendor)
(cd ${WRKSRC} && modules2tuple vendor/modules.txt)
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/kas ${STAGEDIR}${PREFIX}/bin/kas