pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/kubectl kubectl: fix build with Go 1.17.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5462998771a7
branches:  trunk
changeset: 457894:5462998771a7
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Sep 04 14:52:06 2021 +0000

description:
kubectl: fix build with Go 1.17.

For some reason, Go 1.17 uses -mod=vendor as the default in this build and
complains about needing to update go.mod. Add a "-mod=readonly" to get it
to build.

diffstat:

 net/kubectl/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3f6115416f89 -r 5462998771a7 net/kubectl/Makefile
--- a/net/kubectl/Makefile      Sat Sep 04 14:33:03 2021 +0000
+++ b/net/kubectl/Makefile      Sat Sep 04 14:52:06 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2021/08/11 19:35:04 bsiegert Exp $
+# $NetBSD: Makefile,v 1.8 2021/09/04 14:52:06 bsiegert Exp $
 
 DISTNAME=      kubectl-1.20.9
 PKGREVISION=   1
@@ -21,7 +21,7 @@
                        -X k8s.io/component-base/version.gitMinor=${PKGVERSION_NOREV:C/[0-9]+\.//:C/\..*//} \
                        -X k8s.io/component-base/version.gitTreeState=clean \
                        -X k8s.io/component-base/version.gitVersion=v${PKGVERSION_NOREV}'
-GO_BUILD_PATTERN+=     ./cmd/kubectl
+GO_BUILD_PATTERN+=     -mod=readonly ./cmd/kubectl
 
 .include "go-modules.mk"
 



Home | Main Index | Thread Index | Old Index