Force an update of the go.mod files before building official release.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
diff --git a/Makefile b/Makefile
index e148633..939b5a2 100644
--- a/Makefile
+++ b/Makefile
@@ -31,8 +31,9 @@
distclean: clean
$(DISTCLEAN)
- @echo "CONFIRM Go package cap has right version dependency on psx:"
- grep -F "require kernel.org/pub/linux/libs/security/libcap/psx v$(GOMAJOR).$(VERSION).$(MINOR)" cap/go.mod
+ @echo "CONFIRM Go package cap has right version dependency on cap/psx:"
+ for x in $$(find . -name go.mod); do grep -F "require kernel.org/pub/linux/libs/security/libcap" $$x || continue ; grep -F "v$(GOMAJOR).$(VERSION).$(MINOR)" $$x && continue ; echo "$$x is not updated to v$(GOMAJOR).$(VERSION).$(MINOR)" ; exit 1 ; done
+ @echo "ALL go.mod files updated"
release: distclean
cd .. && ln -s libcap libcap-$(VERSION).$(MINOR) && tar cvf libcap-$(VERSION).$(MINOR).tar --exclude patches libcap-$(VERSION).$(MINOR)/* && rm libcap-$(VERSION).$(MINOR)
diff --git a/goapps/setid/go.mod b/goapps/setid/go.mod
index a7d0877..879cfe4 100644
--- a/goapps/setid/go.mod
+++ b/goapps/setid/go.mod
@@ -3,6 +3,6 @@
go 1.11
require (
- kernel.org/pub/linux/libs/security/libcap/cap v0.2.38
- kernel.org/pub/linux/libs/security/libcap/psx v0.2.38
+ kernel.org/pub/linux/libs/security/libcap/cap v0.2.39
+ kernel.org/pub/linux/libs/security/libcap/psx v0.2.39
)
diff --git a/goapps/web/go.mod b/goapps/web/go.mod
index fbd7a86..1d89211 100644
--- a/goapps/web/go.mod
+++ b/goapps/web/go.mod
@@ -2,4 +2,4 @@
go 1.11
-require kernel.org/pub/linux/libs/security/libcap/cap v0.2.38 // indirect
+require kernel.org/pub/linux/libs/security/libcap/cap v0.2.39 // indirect