@@ -55,12 +55,17 @@ The -exclude=path@version and -dropexclude=path@version flags
55
55
add and drop an exclusion for the given module path and version.
56
56
Note that -exclude=path@version is a no-op if that exclusion already exists.
57
57
58
- The -replace=old[@v]=new[@v] and -dropreplace=old[@v] flags
59
- add and drop a replacement of the given module path and version pair.
60
- If the @v in old@v is omitted, the replacement applies to all versions
61
- with the old module path. If the @v in new@v is omitted, the new path
62
- should be a local module root directory, not a module path.
63
- Note that -replace overrides any existing replacements for old[@v].
58
+ The -replace=old[@v]=new[@v] flag adds a replacement of the given
59
+ module path and version pair. If the @v in old@v is omitted, a
60
+ replacement without a version on the left side is added, which applies
61
+ to all versions of the old module path. If the @v in new@v is omitted,
62
+ the new path should be a local module root directory, not a module
63
+ path. Note that -replace overrides any redundant replacements for old[@v],
64
+ so omitting @v will drop existing replacements for specific versions.
65
+
66
+ The -dropreplace=old[@v] flag drops a replacement of the given
67
+ module path and version pair. If the @v is omitted, a replacement without
68
+ a version on the left side is dropped.
64
69
65
70
The -require, -droprequire, -exclude, -dropexclude, -replace,
66
71
and -dropreplace editing flags may be repeated, and the changes
0 commit comments