pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/kubectl



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Sat Sep  4 14:52:06 UTC 2021

Modified Files:
        pkgsrc/net/kubectl: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/kubectl/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/kubectl/Makefile
diff -u pkgsrc/net/kubectl/Makefile:1.7 pkgsrc/net/kubectl/Makefile:1.8
--- pkgsrc/net/kubectl/Makefile:1.7     Wed Aug 11 19:35:04 2021
+++ pkgsrc/net/kubectl/Makefile Sat Sep  4 14:52:06 2021
@@ -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 @@ GO_BUILD_PATTERN+=    -ldflags ' \
                        -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