Skip to content

Commit

Permalink
Merge pull request #30 from opentofu/provider-vcs-version
Browse files Browse the repository at this point in the history
Changing the provider `ToVCSVersion()` to not automatically normalize
  • Loading branch information
abstractionfactory authored Sep 5, 2024
2 parents 6fa867e + d09bc0a commit 13386c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/provider/version_number.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ func (v VersionNumber) Validate() error {
return nil
}

// ToVCSVersion creates a vcs.VersionNumber from the VersionNumber.
// ToVCSVersion creates a vcs.VersionNumber from the VersionNumber. Call ToVCSVersion() before you call Normalize() in
// order to get the correct VCS version.
func (v VersionNumber) ToVCSVersion() vcs.VersionNumber {
return vcs.VersionNumber(v.Normalize())
return vcs.VersionNumber(v)
}

type InvalidVersionNumber struct {
Expand Down

0 comments on commit 13386c1

Please sign in to comment.