Align semver libs (#52795)

* Convert autoupdate version handling to coreos/go-semver

* get the right version in installer endpoint + get rid of x/mod/semver

* depguard x/mod/semver

* Add nolint rules for existing x/mod/semver usages

* Add depguard explanation
This commit is contained in:
Hugo Shaka
2025-03-19 18:03:35 +00:00
committed by GitHub
parent 5e73eaf342
commit c20095e9d6
42 changed files with 360 additions and 287 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ import (
"strings"
"github.com/gravitational/trace"
"golang.org/x/mod/semver"
"golang.org/x/mod/semver" //nolint:depguard // Usage precedes the x/mod/semver rule.
"github.com/gravitational/teleport"
logutils "github.com/gravitational/teleport/lib/utils/log"