version: replace internal code with github.com/coreos/go-semver
We were already importing go-semver so it makes sense to remove the duplicated semver parsing code and just use go-semver
This commit is contained in:
parent
cc0421cb9e
commit
75d54d720c
6 changed files with 27 additions and 193 deletions
|
@ -14,7 +14,6 @@ import (
|
|||
|
||||
"github.com/rclone/rclone/fs"
|
||||
"github.com/rclone/rclone/fs/config/obscure"
|
||||
"github.com/rclone/rclone/fs/version"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
|
@ -106,7 +105,7 @@ func TestCoreVersion(t *testing.T) {
|
|||
assert.Equal(t, runtime.GOARCH, out["arch"])
|
||||
assert.Equal(t, runtime.Version(), out["goVersion"])
|
||||
_ = out["isGit"].(bool)
|
||||
v := out["decomposed"].(version.Version)
|
||||
v := out["decomposed"].([]int64)
|
||||
assert.True(t, len(v) >= 2)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue