mirror of
https://git.kernel.org/pub/scm/libs/libcap/libcap.git
synced 2026-01-26 07:37:54 +00:00
Add a handy update script for the various go.mod files.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
This commit is contained in:
parent
2f9b7f484c
commit
91455fd109
2
Makefile
2
Makefile
@ -32,7 +32,7 @@ clean-here:
|
||||
distclean: clean
|
||||
$(DISTCLEAN)
|
||||
@echo "CONFIRM Go package cap has right version dependency on cap/psx:"
|
||||
for x in $$(find . -name go.mod); do grep -F -v "module" $$x | fgrep "kernel.org/pub/linux/libs/security/libcap" > /dev/null || continue ; grep -F "v$(GOMAJOR).$(VERSION).$(MINOR)" $$x > /dev/null && continue ; echo "$$x is not updated to v$(GOMAJOR).$(VERSION).$(MINOR)" ; exit 1 ; done
|
||||
for x in $$(find . -name go.mod); do grep -F -v "module" $$x | fgrep "kernel.org/pub/linux/libs/security/libcap" > /dev/null || continue ; grep -F "v$(GOMAJOR).$(VERSION).$(MINOR)" $$x > /dev/null && continue ; echo "$$x is not updated. Try running: ./gomods.sh v$(GOMAJOR).$(VERSION).$(MINOR)" ; exit 1 ; done
|
||||
@echo "ALL go.mod files updated"
|
||||
@echo "Now validate that everything is checked in to a clean tree.."
|
||||
test -z "$$(git status --ignored -s)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user