-
Notifications
You must be signed in to change notification settings - Fork 22
Expose latest matched version #201
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Background
When installing a latest version e.g. via
or even when discovering existing installation e.g. via fs.Version
it is currently impossible for the consumer to tell what version was installed after calling Install, Ensure or Find without executing the binary while the library internally already has the knowledge of the matched version.
Proposal
Expose matched version for the consumer
Considerations
This may require some breaking changes, e.g. returning a struct { ExecPath string, Version *version.Version } instead of just string (exec path) from the various methods like Install, Ensure and Find per https://pkg.go.dev/github.com/hashicorp/[email protected]/src
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request