You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Background
When installing a latest version e.g. via
releases.LatestVersion
checkpoint.LatestVersion
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
orFind
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 juststring
(exec path) from the various methods likeInstall
,Ensure
andFind
per https://pkg.go.dev/github.com/hashicorp/[email protected]/srcThe text was updated successfully, but these errors were encountered: