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
Currently a vgo replace directive specifies the replacement of an exact version of a module, but this means that if we're trying to override a module with a local version and for some reason a different version is selected (for example because we have updated some other module and it specifies a later version), the replacement will be ignored. This means that replacement directives are fragile.
Consider allowing a syntax where the specified version can omit the minor or patch version to match all minor versions or all patch versions for a given module.
For example:
replace "rsc.io/quote" v1 => "../quote"
The text was updated successfully, but these errors were encountered:
I would love to take a crack at trying to implement this if no-one is working on it already and it's wanted (have ran into this issue myself in a few cases).
Currently a vgo replace directive specifies the replacement of an exact version of a module, but this means that if we're trying to override a module with a local version and for some reason a different version is selected (for example because we have updated some other module and it specifies a later version), the replacement will be ignored. This means that replacement directives are fragile.
Consider allowing a syntax where the specified version can omit the minor or patch version to match all minor versions or all patch versions for a given module.
For example:
The text was updated successfully, but these errors were encountered: