/ go Public
cmd/go/internal/modfetch: document known bug in
Documentation FrozenDueToAge modules NeedsFix
The path to resolution is known, but the work has not been done.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
Lines 632 to 642 in c8aaec2
What did you expect to see?
What did you see instead?
The function is not documented, but it is obvious that it is not doing what the intention is.
It seems that the intention is to match against this regex:
But in fact it does random match by skipping first 8 bytes in case the input contains
The fix is to add the j to the i as states above.
It is quite important to fix it early on, because it may cause go-modules with different hashes and a late fix can cause more hash mismatch of the same content (defy the immutability logic).
The text was updated successfully, but these errors were encountered: