Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove golang.org/x/mod/semver dependency #2347

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

michi-covalent
Copy link
Contributor

ListVersions() uses golang.org/x/mod/semver only for sorting. Use the sort function from github.com/blang/semver/v4 instead. No need to depend on multiple semver libraries.

ListVersions() uses golang.org/x/mod/semver only for sorting. Use the
sort function from github.com/blang/semver/v4 instead. No need to depend
on multiple semver libraries.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
@michi-covalent
Copy link
Contributor Author

sample output

./cilium install --list-versions
v1.15.1 (default)
v1.15.0
v1.15.0-rc.1
v1.15.0-rc.0
v1.15.0-pre.3
v1.15.0-pre.2
v1.15.0-pre.1
v1.15.0-pre.0
v1.14.7
v1.14.6
v1.14.5
v1.14.4
v1.14.3
v1.14.2
v1.14.1
v1.14.0
v1.14.0-snapshot.4
v1.14.0-snapshot.3
v1.14.0-snapshot.2
v1.14.0-snapshot.1
v1.14.0-snapshot.0
v1.14.0-rc.1
v1.14.0-rc.0
v1.13.12
v1.13.11
v1.13.10
v1.13.9
v1.13.8
v1.13.7
v1.13.6
v1.13.5
v1.13.4
v1.13.3
v1.13.2
v1.13.1
v1.13.0
v1.13.0-rc5
v1.13.0-rc4
v1.13.0-rc3
v1.13.0-rc2
v1.13.0-rc1
v1.13.0-rc0
v1.12.19
v1.12.18
v1.12.17
v1.12.16
v1.12.15
v1.12.14
v1.12.13
v1.12.12
v1.12.11
v1.12.10
v1.12.9
v1.12.8
v1.12.7
v1.12.6
v1.12.5
v1.12.4
v1.12.3
v1.12.2
v1.12.1
v1.12.0
v1.12.0-rc3
v1.12.0-rc2
v1.12.0-rc1
v1.12.0-rc0
v1.11.20
v1.11.19
v1.11.18
v1.11.17
v1.11.16
v1.11.15
v1.11.14
v1.11.13
v1.11.12
v1.11.11
v1.11.10
v1.11.9
v1.11.8
v1.11.7
v1.11.6
v1.11.5
v1.11.4
v1.11.3
v1.11.2
v1.11.1
v1.11.0
v1.11.0-rc3
v1.11.0-rc2
v1.11.0-rc1
v1.11.0-rc0
v1.10.20
v1.10.19
v1.10.18
v1.10.17
v1.10.16
v1.10.15
v1.10.14
v1.10.13
v1.10.12
v1.10.11
v1.10.10
v1.10.9
v1.10.8
v1.10.7
v1.10.6
v1.10.5
v1.10.4
v1.10.3
v1.10.2
v1.10.1
v1.10.0
v1.10.0-rc2
v1.10.0-rc1
v1.10.0-rc0
v1.9.18
v1.9.17
v1.9.16
v1.9.15
v1.9.14
v1.9.13
v1.9.12
v1.9.11
v1.9.10
v1.9.9
v1.9.8
v1.9.7
v1.9.6
v1.9.5
v1.9.4
v1.9.3
v1.9.2
v1.9.1
v1.9.0
v1.9.0-rc3
v1.9.0-rc2
v1.9.0-rc1
v1.9.0-rc0
v1.8.13
v1.8.12
v1.8.11
v1.8.10
v1.8.9
v1.8.8
v1.8.7
v1.8.6
v1.8.5
v1.8.4
v1.8.3
v1.8.2
v1.8.1
v1.8.0
v1.8.0-rc4
v1.8.0-rc3
v1.8.0-rc2
v1.8.0-rc1
v1.7.16
v1.7.15
v1.7.14
v1.7.13
v1.7.12
v1.7.11
v1.7.10
v1.7.9
v1.7.8
v1.7.7
v1.7.6
v1.7.5
v1.7.4
v1.7.3
v1.7.2
v1.7.1
v1.7.0
v1.7.0-rc4
v1.7.0-rc3
v1.6.12
v1.6.11
v1.6.10
v1.6.9
v1.6.8
v1.6.7
v1.6.6
v1.6.5

@michi-covalent michi-covalent marked this pull request as ready for review February 28, 2024 07:02
@michi-covalent michi-covalent requested review from a team as code owners February 28, 2024 07:02
@michi-covalent michi-covalent merged commit 0ac6a33 into main Feb 28, 2024
13 checks passed
@michi-covalent michi-covalent deleted the pr/michi/semver-clean branch February 28, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants