From 7e89f3ab1bb93c14168c68689068d0a7d4e660d6 Mon Sep 17 00:00:00 2001 From: Jonathan Poole Date: Mon, 13 Nov 2023 13:37:18 +0000 Subject: [PATCH] update go plugin (#2938) * update go plugin * Sort tags better --- docs/BUILD | 2 +- docs/plugins/lint_plugin_docs.sh | 2 +- plugins/BUILD | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/BUILD b/docs/BUILD index b38cd3435a..cef3a197d0 100644 --- a/docs/BUILD +++ b/docs/BUILD @@ -59,7 +59,7 @@ genrule( plugins = { "python": "v1.5.0", "java": "v0.3.0", - "go": "v1.9.2", + "go": "v1.11.2", "cc": "v0.4.0", "shell": "v0.2.0", "go-proto": "v0.2.1", diff --git a/docs/plugins/lint_plugin_docs.sh b/docs/plugins/lint_plugin_docs.sh index d04c537629..ec970fbc75 100755 --- a/docs/plugins/lint_plugin_docs.sh +++ b/docs/plugins/lint_plugin_docs.sh @@ -8,7 +8,7 @@ URL_PREFIX="https://github.com/please-build/" failed=0 for plugin in "${PLUGINS[@]}"; do - latest=$(git ls-remote --tags "${URL_PREFIX}""${plugin}"-rules.git | sed 's/.*\///' | sed '/^v[0-9]\+\.[0-9]\+\.[0-9]\+$/!d' | tail -n 1) + latest=$(git ls-remote --tags --sort=version:refname "${URL_PREFIX}""${plugin}"-rules.git | sed 's/.*\///' | sed '/^v[0-9]\+\.[0-9]\+\.[0-9]\+$/!d' | tail -n 1) if [ -z "$latest" ]; then echo "No tags found for ${plugin}" exit 1 diff --git a/plugins/BUILD b/plugins/BUILD index c70db9329d..8fe04aad3e 100644 --- a/plugins/BUILD +++ b/plugins/BUILD @@ -1,7 +1,7 @@ plugin_repo( name = "go", plugin = "go-rules", - revision = "v1.8.0", + revision = "v1.11.2", ) plugin_repo(