Skip to content

use Masterminds/semver instead of x/mod - #2015

Merged
henry118 merged 1 commit into
mainfrom
use-masterminds-semver
Aug 21, 2026
Merged

use Masterminds/semver instead of x/mod#2015
henry118 merged 1 commit into
mainfrom
use-masterminds-semver

Conversation

@tariq1890

@tariq1890 tariq1890 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

This PR replaces golang.org/x/mod with the github.com/Masterminds/semver/v3 module for all semver processing in the repo.

Masterminds/semver is a more lightweight dependency and it also supports the parsing of semantic version strings with/without the "v" prefix. This removes the need for any explicit prefixing of version strings just so that they are usable in x/mod's semver methods.

@coveralls

coveralls commented Aug 21, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 32531945592

Coverage decreased (-0.03%) to 44.032%

Details

  • Coverage decreased (-0.03%) from the base build.
  • Patch coverage: 11 uncovered changes across 2 files (12 of 23 lines covered, 52.17%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
internal/requirements/constraints/property.go 12 3 25.0%
cmd/nvidia-container-runtime-hook/container_config.go 7 5 71.43%
Total (3 files) 23 12 52.17%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 15298
Covered Lines: 6736
Line Coverage: 44.03%
Coverage Strength: 0.49 hits per line

💛 - Coveralls

@tariq1890
tariq1890 force-pushed the use-masterminds-semver branch from 31d614f to ffa70e8 Compare August 21, 2026 00:09
@tariq1890
tariq1890 marked this pull request as ready for review August 21, 2026 00:09
@tariq1890
tariq1890 force-pushed the use-masterminds-semver branch 5 times, most recently from aa17f62 to 4032edf Compare August 21, 2026 01:09
Comment thread cmd/nvidia-container-runtime-hook/container_config.go
Comment thread cmd/nvidia-container-runtime-hook/container_config.go Outdated
@tariq1890
tariq1890 force-pushed the use-masterminds-semver branch 2 times, most recently from d81decc to 8573718 Compare August 21, 2026 22:11
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
@tariq1890
tariq1890 force-pushed the use-masterminds-semver branch from 8573718 to 36e8473 Compare August 21, 2026 22:11

@henry118 henry118 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on green

@henry118
henry118 merged commit d34b304 into main Aug 21, 2026
34 of 35 checks passed
@henry118
henry118 deleted the use-masterminds-semver branch August 21, 2026 23:17
@tariq1890 tariq1890 self-assigned this Aug 21, 2026
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.

3 participants