From b944e3b3a7b9fd0276be3bc55959473599eb256f Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 8 Nov 2023 00:29:57 +0100 Subject: [PATCH] chore: Remove unused version infrastructure --- internal/cmd/errors.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/internal/cmd/errors.go b/internal/cmd/errors.go index b11c3bad27b..ac957bb0375 100644 --- a/internal/cmd/errors.go +++ b/internal/cmd/errors.go @@ -3,8 +3,6 @@ package cmd import ( "fmt" "os/exec" - - "github.com/coreos/go-semver/semver" ) type cmdOutputError struct { @@ -34,14 +32,6 @@ func (e *cmdOutputError) Unwrap() error { return e.err } -type extractVersionError struct { - output []byte -} - -func (e *extractVersionError) Error() string { - return fmt.Sprintf("%s: cannot extract version", e.output) -} - type parseCmdOutputError struct { command string args []string @@ -83,20 +73,3 @@ func (e *parseVersionError) Error() string { func (e *parseVersionError) Unwrap() error { return e.err } - -type unsupportedVersionError struct { - version *semver.Version -} - -func (e *unsupportedVersionError) Error() string { - return fmt.Sprintf("%s: unsupported version", e.version) -} - -type versionTooOldError struct { - have *semver.Version - need *semver.Version -} - -func (e *versionTooOldError) Error() string { - return fmt.Sprintf("found version %s, need version %s or later", e.have, e.need) -}