if on checkout git decides to convert the source files to windows line endings then attempting to generate fails with an error about it being an unrecognized line.
unrecognized line "// ¡ INSERT base/copyright\r\n", want one of:
// ¡ INSERT InterfaceDeclarations.
[...]
// ¡ INSERT base/copyright
[...]
even though "base/copyright" is present. And no information about where that line would be found or that it's about the line ending.
The workaround is to convert the various files with an insert directive in cgen/base back to linux line endings (or disable line ending conversion in git and recheckout) and run go install wuffs-c again
potential fixes
duplicate the keys to also account for windows line endings.
add a .gitattributes file to filter out those files from being auto converted
if on checkout git decides to convert the source files to windows line endings then attempting to generate fails with an error about it being an unrecognized line.
even though "base/copyright" is present. And no information about where that line would be found or that it's about the line ending.
The workaround is to convert the various files with an insert directive in cgen/base back to linux line endings (or disable line ending conversion in git and recheckout) and run
go install wuffs-c
againpotential fixes