Closed bbigras closed 4 years ago
My bad I didn't do something correctly. Sorry. It's been a while that I didn't play with Go.
oh wait I still have the problem but only for the v3.0.0-rc34 tag. not master.
The same error is now showing up with the new GitLab update.
I tracked this down to this problem:
package main
import (
"fmt"
"golang.org/x/tools/go/vcs"
)
func main() {
repoRootDynamic, err := vcs.RepoRootForImportDynamic(
"dmitri.shuralyov.com/gpu/mtl",
true)
if err != nil {
fmt.Println(fmt.Sprintf("RepoRootForImportDynamic Error %s", err))
} else {
fmt.Println(fmt.Sprintf("RepoRootForImportDynamic Success %s", repoRootDynamic))
}
}
Running this gives
RepoRootForImportDynamic Error
parse https://dmitri.shuralyov.com/gpu/mtl?go-get=1:
multiple meta tags match import path "dmitri.shuralyov.com/gpu/mtl"
The contents of that URL are
<meta name="go-import" content="dmitri.shuralyov.com/gpu/mtl git https://dmitri.shuralyov.com/gpu/mtl">
<meta name="go-import" content="dmitri.shuralyov.com/gpu/mtl mod https://dmitri.shuralyov.com/api/module">
<meta name="go-source" content="dmitri.shuralyov.com/gpu/mtl https://dmitri.shuralyov.com/gpu/mtl https://gotools.org/dmitri.shuralyov.com/gpu/mtl https://gotools.org/dmitri.shuralyov.com/gpu/mtl#{file}-L{line}">
@dmitshur Do you have any idea about why this is happening?
@Infinisil Yes. I think you must've tested with a very old version of the golang.org/x/tools/go/vcs
package. This was issue golang/go#31845, and it was fixed on May 6, 2019.
I see that the golang.org/x/tools
module was updated from a 2-year-old version to a newer one in PR #37 11 days ago, so I suspect this problem is resolved now.
@bbigras Let me know if this is still an issue.
vgo2nix-unstable-2019-02-06
EDIT: If I use
-keep-going
I get more errors: