From 364c1189d9f7dc0366c7b5f8c4e72fdd3a0b926e Mon Sep 17 00:00:00 2001 From: Tim Bai Date: Fri, 15 Mar 2024 17:35:19 -0400 Subject: [PATCH] Support Go version schema change since 1.21 (#3891) --- go/private/sdk.bzl | 2 -- 1 file changed, 2 deletions(-) diff --git a/go/private/sdk.bzl b/go/private/sdk.bzl index aa8e806a2..f0b31246c 100644 --- a/go/private/sdk.bzl +++ b/go/private/sdk.bzl @@ -685,8 +685,6 @@ def _version_less(a, b): def _version_string(v): suffix = v[3] if _version_is_prerelease(v) else "" - if v[-1] == 0: - v = v[:-1] return ".".join([str(n) for n in v]) + suffix def _have_same_length(*lists):