Hello, given repository structured as
+ $ tree . . ├── foo └── go ├── go.mod └── main.go 1 directory, 3 files I'm trying to setup go-import meta tag for it, however it just does not seem to work. Meta tag looks like this: <meta name="go-import" content="example.org/ git ssh://git@HOST:PORT/foo.git/go" /> It is correctly resolved to the repository, the repository is downloaded, however the resulting pkg directory does not contain the go directory at all. I've tracked it down to golang.org/x/mod/zip, which seems to exclude every subdirectory with go.mod. So I guess I need to somehow convince git to package just the go directory (and move it one level up), but looking at src/cmd/go/internal/modfetch/codehost/git.go:828 I do not see a way to do it. I assume what I'm trying to do should be possible, since it does not sound like such a insane use-case, but I'm just not able to find a way to do this. Could someone please point me in the right direction? I'm using go 1.14.4 ( go version go1.14.4 linux/amd64 ). Thank you in advance for any advice on this, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/20200608124023.sdfanvxtbbnc3a6a%40showmax.com.
signature.asc
Description: PGP signature