We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent2a6f8e7 commitb29e24cCopy full SHA for b29e24c
scripts/release/main.go
@@ -381,9 +381,8 @@ func (r *releaseCommand) autoversionFile(ctx context.Context, file, channel, ver
381
}
382
383
ifmatchRe!=nil {
384
-// Apply matchRe and find the group named "version", then replace it with the new version.
385
-// Utilize the index where the match was found to replace the correct part. The only
386
-// match group is the version.
+// Apply matchRe and find the group named "version", then replace it
+// with the new version.
387
ifmatch:=matchRe.FindStringSubmatchIndex(line);match!=nil {
388
vg:=matchRe.SubexpIndex("version")
389
ifvg==-1 {