On Wed, Mar 5, 2025 at 10:34 PM Björn Försterling
<
bjoern.fo...@gmail.com> wrote:
>
> when trying to "go get" inside the "golang/tools" module (
golang.org/x/tools) I cannot download any Go files:
> .../golang/tools (master) $ GOMODCACHE="$(pwd)/.godeps" go get
> go: no package to get in current directory
Well, that is true: there is no package at the top level of
golang.org/x/tools.
> It only gives me a dir structure with go.mod files and version numbers:
> cache
> └── download
> ├──
github.com
> │ ├── google
> │ │ └── go-cmp
> │ │ └── @v
> │ │ ├── list
> │ │ └── v0.6.0.mod
>
> Usually this git clones the entire dependenices with all the Go files.
> Is this because Google's repos are not Git repos?
> There must be a way to get all dependencies and all the Go files.
To fetch all the dependencies of all the packages in x/tools, use "go
get ./...".
Ian