Re: [go-nuts] How to correctly run test in Golang source code directory runtime?

2020-08-28 Thread Ian Lance Taylor
On Fri, Aug 28, 2020 at 9:35 AM Chai Baoyang <88304...@qq.com> wrote: > > Hi All, > I tried to run "go test -timeout 30s -run ^TestMemStats$" in the source > directory runtime. But failed with error infomation below: > "error.go:7:8: use of internal package internal/bytealg not allowed >

[go-nuts] How to correctly run test in Golang source code directory runtime?

2020-08-28 Thread Chai Baoyang
Hi All, I tried to run "go test -timeout 30s -run ^TestMemStats$" in the source directory runtime. But failed with error infomation below: "error.go:7:8: use of internal package internal/bytealg not allowed alg.go:8:2: use of internal package internal/cpu not allowed atomic_pointer.go:8:2: