Repo for testing how Cachito handles packages, specifically for repos which use go generate
. See go generate.
Such repos can be identified with a //go:generate ...
comment in the main.go
file.
There are 4 of these repos with distinct characteristics:
- Directory foobar is empty and
main.go
does not import packagefoobar
- Directory foobar contains
foobar.go
andmain.go
does not import packagefoobar
- Directory foobar is empty and
main.go
imports packagefoobar
- Directory foobar contains
foobar.go
andmain.go
imports packagefoobar
This is case 2. In this case, Cachito request recognizes both "main" and "foobar" as packages (2pkg, 0dep)
├── foobar
│ └── foobar.go ("package foobar", generated)
└── main.go ("package main")