hashicorp / hashicorp/go-version

Version comparison does not check metadata

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.8k
Forks
165
Avg merge
23h 42m
Merged PRs (30d)
2

Description

The metadata isn't checked when comparing versions. This is causing Terraform to pull an incorrect module version for some: https://github.com/hashicorp/terraform/issues/20814

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked Terraform issue and tracing how this library compares versions. Reproduce the incorrect module-version selection, identify the comparison entry point and relevant tests, and consider the issue done when metadata differences produce the expected ordering and the regression is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.