We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
=== RUN TestName1 --- FAIL: TestName1 (0.00s) panic: permission denied [recovered] panic: permission denied
goroutine 83 [running]: testing.tRunner.func1.2({0x100ff16a0, 0x1018edb88}) /usr/local/go/src/testing/testing.go:1545 +0x48a testing.tRunner.func1() /usr/local/go/src/testing/testing.go:1548 +0x63f panic({0x100ff16a0?, 0x1018edb88?}) /usr/local/go/src/runtime/panic.go:920 +0x290 github.com/go-kiss/monkey.mprotectCrossPage(0x100ee1c00, 0xd, 0x7) /Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/replace_unix.go:16 +0xf9 github.com/go-kiss/monkey.copyToLocation(0x100ee1c00, {0xc00052fe30, 0xd, 0xd}) /Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/replace_unix.go:27 +0x75 github.com/go-kiss/monkey.(*patch).Apply(0xc00022d090) /Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/monkey.go:269 +0x1be github.com/go-kiss/monkey.patchValue({0x100f92de0, 0x101190540, 0x13}, {0x100f92de0, 0x101190520, 0x13}, 0xc00024f6a0) /Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/monkey.go:150 +0x6fc github.com/go-kiss/monkey.Patch({0x100f92de0, 0x101190540}, {0x100f92de0, 0x101190520}, {0x0, 0x0, 0x0}) /Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/monkey.go:54 +0x1e5 data-factory/core/manager.TestName1(0xc000501520) /Users/amos/Code/104-Golang/data-factory/core/manager/import_test.go:24 +0x5f testing.tRunner(0xc000501520, 0x101190460) /usr/local/go/src/testing/testing.go:1595 +0x1c2 created by testing.(*T).Run in goroutine 1 /usr/local/go/src/testing/testing.go:1648 +0x7e5
已经添加 -gcflags='all=-N -l' 参数
The text was updated successfully, but these errors were encountered:
在 goland 上无法运行,但是手动执行命令是可以的。
Sorry, something went wrong.
你用的是 M1/M2 芯片吗?如果是,可以添加环境变量GOARCH=AMD64试试看。
GOARCH=AMD64
intel 的
运行不可以,但是调试可以
是不是跟这个问题类似 agiledragon/gomonkey#142
不是哦,不太一样
No branches or pull requests
=== RUN TestName1
--- FAIL: TestName1 (0.00s)
panic: permission denied [recovered]
panic: permission denied
goroutine 83 [running]:
testing.tRunner.func1.2({0x100ff16a0, 0x1018edb88})
/usr/local/go/src/testing/testing.go:1545 +0x48a
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1548 +0x63f
panic({0x100ff16a0?, 0x1018edb88?})
/usr/local/go/src/runtime/panic.go:920 +0x290
github.com/go-kiss/monkey.mprotectCrossPage(0x100ee1c00, 0xd, 0x7)
/Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/replace_unix.go:16 +0xf9
github.com/go-kiss/monkey.copyToLocation(0x100ee1c00, {0xc00052fe30, 0xd, 0xd})
/Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/replace_unix.go:27 +0x75
github.com/go-kiss/monkey.(*patch).Apply(0xc00022d090)
/Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/monkey.go:269 +0x1be
github.com/go-kiss/monkey.patchValue({0x100f92de0, 0x101190540, 0x13}, {0x100f92de0, 0x101190520, 0x13}, 0xc00024f6a0)
/Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/monkey.go:150 +0x6fc
github.com/go-kiss/monkey.Patch({0x100f92de0, 0x101190540}, {0x100f92de0, 0x101190520}, {0x0, 0x0, 0x0})
/Users/amos/go/pkg/mod/github.com/go-kiss/[email protected]/monkey.go:54 +0x1e5
data-factory/core/manager.TestName1(0xc000501520)
/Users/amos/Code/104-Golang/data-factory/core/manager/import_test.go:24 +0x5f
testing.tRunner(0xc000501520, 0x101190460)
/usr/local/go/src/testing/testing.go:1595 +0x1c2
created by testing.(*T).Run in goroutine 1
/usr/local/go/src/testing/testing.go:1648 +0x7e5
已经添加 -gcflags='all=-N -l' 参数
The text was updated successfully, but these errors were encountered: