A tool to search and index Golang projects in Sally vanity config
go install github.com/jwillker/sherlock@latest
or download the binary specific for your OS.
Usage:
sherlock investigate [flags]
Flags:
-u, --base-url string GitLab api url. Default https://gitlab.com/api/v4
-d, --godoc string Godoc URL
-g, --group-id int GitLab group id
-h, --help help for investigate
-o, --output string Vanity packages config. Default: packages.yaml (default "packages.yaml")
-v, --vanity-url string Sally vanity URL
Running:
sherlock investigate -u https://gitlab.my-company.com/api/v4 -g 123 -d godoc.my-company.com/pkg -v go.my-company.com
Result:
cat packages.yaml
godoc:
host: godoc.my-company.com/pkg
url: go.my-company.com
packages:
logs:
repo: https://gitlab.my-company.com/libs/golang/logs.git
sqs:
repo: https://gitlab.my-company.com/libs/golang/sqs.git
So you can host this using Sally vanity by running:
sally -yml packages.yaml -port 8080
Use make help to see what to run, some options:
help Show Help
build Build sherlock
dep Get the dependencies
lint Run linter
race Run data race detector
msan Run memory sanitizer
test Run tests