模块不在 golang test/build 进程中 cache/save。你如何解决这个问题?
Module does not cache/save in golang test/build process. How do you work around this?
在我的一个项目中,使用了 go modules。每次我做任何事情时,它都会开始不断地搜索模块。我包含了很多模块,但只有一个模块这样做(见下文)。我该如何解决这个问题?
> go test -run TestUodate
go: finding github.com/mohae/deepcopy latest
PASS
ok example.com/example/stuff 0.698s
此症状类似于 https://golang.org/issue/29773, which is fixed at head (but not in go1.13beta1
or earlier releases). Try it using a go
command built from head, which you can obtain easily using the gotip
工具中的症状。
如果您仍然在使用 gotip
时看到此问题,请通过填写 https://golang.org/issue/new 中的模板打开一个问题。
在我的一个项目中,使用了 go modules。每次我做任何事情时,它都会开始不断地搜索模块。我包含了很多模块,但只有一个模块这样做(见下文)。我该如何解决这个问题?
> go test -run TestUodate
go: finding github.com/mohae/deepcopy latest
PASS
ok example.com/example/stuff 0.698s
此症状类似于 https://golang.org/issue/29773, which is fixed at head (but not in go1.13beta1
or earlier releases). Try it using a go
command built from head, which you can obtain easily using the gotip
工具中的症状。
如果您仍然在使用 gotip
时看到此问题,请通过填写 https://golang.org/issue/new 中的模板打开一个问题。