mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 15:40:07 -06:00
Update logging wording.
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
8de4488443
commit
3545d0fbf3
@ -526,7 +526,7 @@ func (i *ModuleInstaller) installRegistryModule(ctx context.Context, req *config
|
|||||||
constraint := req.VersionConstraint.Required.String()
|
constraint := req.VersionConstraint.Required.String()
|
||||||
acceptableVersions, err := versions.MeetingConstraintsString(constraint)
|
acceptableVersions, err := versions.MeetingConstraintsString(constraint)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("[WARN] ModuleInstaller: Attempting to strip \"v\" prefixes, because version constraints %q was unable to be parsed: %s", constraint, err.Error())
|
log.Printf("[WARN] ModuleInstaller: %s (while evaluating %s) attempting to strip \"v\" prefixes from constraint (%s) because it was unable to be parsed: %s", key, v, constraint, err.Error())
|
||||||
// apparentlymart/go-versions purposely doesn't accept "v" prefixes.
|
// apparentlymart/go-versions purposely doesn't accept "v" prefixes.
|
||||||
// However, hashicorp/go-version does, which leads to inconsistent
|
// However, hashicorp/go-version does, which leads to inconsistent
|
||||||
// errors when specifying constraints that contain prerelease
|
// errors when specifying constraints that contain prerelease
|
||||||
@ -543,7 +543,7 @@ func (i *ModuleInstaller) installRegistryModule(ctx context.Context, req *config
|
|||||||
}))
|
}))
|
||||||
acceptableVersions, err = versions.MeetingConstraintsString(strippedConstraint)
|
acceptableVersions, err = versions.MeetingConstraintsString(strippedConstraint)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("[WARN] ModuleInstaller: %s ignoring %s because the version constraints (%s) could not be parsed: %s", key, v, req.VersionConstraint.Required.String(), err.Error())
|
log.Printf("[WARN] ModuleInstaller: %s ignoring %s because the version constraints (%s) could not be parsed: %s", key, v, strippedConstraint, err.Error())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user