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

[v14] Remove direct dependency on github.com/hashicorp/go-version #43744

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #43735 to branch/v14

@rosstimothy rosstimothy added backport no-changelog Indicates that a PR does not require a changelog entry labels Jul 2, 2024
@rosstimothy rosstimothy force-pushed the tross/backport-43735/v14 branch from 9e530a5 to 4a754a8 Compare July 2, 2024 17:12
Teleport had 3 dependencies to parse semantic versions:
- golang.org/x/mod/semver
- github.com/coreos/go-semver/semver
- github.com/hashicorp/go-version

The last of the three was only used in `integrations/lib.AssertServerVersion`
which was a clone of `lib/utils.CheckVersion`. By converting all
code in integrations to use `lib/utils.CheckVersion` the direct
dependency on github.com/hashicorp/go-version can be dropped. The
depguard rules have also been updated to prevent it from sneaking
back into the dependency tree. A follow up change will further
consolidate semver dependencies to a single package.
@rosstimothy rosstimothy force-pushed the tross/backport-43735/v14 branch from 4a754a8 to ec248bf Compare July 2, 2024 17:16
@rosstimothy rosstimothy marked this pull request as ready for review July 2, 2024 17:48
@rosstimothy rosstimothy enabled auto-merge July 2, 2024 17:48
@rosstimothy rosstimothy added this pull request to the merge queue Jul 2, 2024
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from marcoandredinis July 2, 2024 17:52
Merged via the queue into branch/v14 with commit 2b76656 Jul 2, 2024
35 checks passed
@rosstimothy rosstimothy deleted the tross/backport-43735/v14 branch July 2, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants