(I wasn't quite sure whether golang-nuts or golang-dev was the best place for this -- sending to golang-nuts for now.)
I just released a new version of GoAWK (v1.8.0) using Go version 1.17, and then tested installing it using "go install". However, go install complains with the following:
Sure enough, I had a file in the repo's top-level directory called "-ftest" (the "-" is a regular ASCII hyphen or "dash"). This file was used in tests, to test whether the program's command line handling distinguished flags from file names correctly.
"File and directory names within a module may consist of Unicode letters, ASCII digits, the ASCII space character (U+0020), and the ASCII punctuation characters !#$%&()+,-.=@[]^_{}~. Note that package paths may not contain all these characters. See module.CheckFilePath and module.CheckImportPath for the differences."
I checked the module.CheckFilePath and module.CheckImportPath doc comments, and they don't seem to mention a leading dash being a problem, either. The /ref/mod doc *does* say that for module paths, "The leading path element ... must contain at least one dot and cannot start with a dash." However, this is stated only for module paths, not for general file paths.
However, the "leading dash" error is a server response, so I suspect the code running on Google's servers is not running Go 1.17 and doesn't have this fix.
Will this just fix itself after Google compiles the server with Go 1.17? Or is another fix required, even if it's just mentioning that constraint in the docs?