英文:
Error go test -v on https://github.com/slicen/cert-manager-webhook-linode
问题
我完全配置并在Linode上创建了一个令牌,但是当我尝试测试我的fetch-test-binaries.sh时,出现了以下错误:
这是错误信息:
go test -v
# github.com/slicen/cert-manager-webhook-linode [github.com/slicen/cert-manager-webhook-linode.test]
./main_test.go:20:7: undefined: dns.SetBinariesPath
./main_test.go:20:23: undefined: kubeBuilderBinPath
FAIL github.com/slicen/cert-manager-webhook-linode [build failed]
make: *** [Makefile:15: verify] Error 2
有人可以帮我解决吗?
错误出现在main_test.go的第7行和第23行。链接文件:https://github.com/slicen/cert-manager-webhook-linode/blob/master/main_test.go
以及Makefile的第15行。链接文件:https://github.com/slicen/cert-manager-webhook-linode/blob/master/Makefile
仓库链接:https://github.com/slicen/cert-manager-webhook-linode
我尝试通过降级或升级我的Go版本以及搜索解决方法,但是没有找到任何结果。
我尝试只运行go test -v(仅克隆并运行测试),但是仍然出现相同的错误。
请帮助我,谢谢!
英文:
I completely make a config and create a token on linode
but i got this error when try to test my fetch-test-binaries.sh
this is the message
go test -v
# github.com/slicen/cert-manager-webhook-linode [github.com/slicen/cert-manager-webhook-linode.test]
./main_test.go:20:7: undefined: dns.SetBinariesPath
./main_test.go:20:23: undefined: kubeBuilderBinPath
FAIL github.com/slicen/cert-manager-webhook-linode [build failed]
make: *** [Makefile:15: verify] Error 2
can someone help me to resolve please ?
The error on file
main_test.go line 7 & 23 Link FIle : https://github.com/slicen/cert-manager-webhook-linode/blob/master/main_test.go
and makefile line 15 Link File : https://github.com/slicen/cert-manager-webhook-linode/blob/master/Makefile
The Repository Link : https://github.com/slicen/cert-manager-webhook-linode
I have tried to resolve with downgrade or upgrade my Go Version and searching but i found nothing,
I tried to just go test -v(not doing anything, just clone & go test) but i got same error
Please Help me, Thanks
答案1
得分: 1
SetBinariesPath
在提交cd92bf321fe14f857f34763583071e068f6c96b3中从cert-manager
中移除。
github.com/slicen/cert-manager-webhook-linode
在提交7131f7755b1278e48341f0d71fabac5b56b964fb中更新到了cert-manager
的新版本,看起来它移动到了一个包含SetBinariesPath
移除的cert-manager
版本。kubeBuilderBinPath
的变量声明已经正确删除,但对dns.SetBinariesPath
的调用和对已删除的kubeBuilderBinPath
的引用仍然存在。
因此,main_test.go
中的代码是无效的 - 至少应该删除line 20。
英文:
SetBinariesPath
was removed from cert-manager
in commit cd92bf321fe14f857f34763583071e068f6c96b3
github.com/slicen/cert-manager-webhook-linode
was updated to a newer version of cert-manager
in commit 7131f7755b1278e48341f0d71fabac5b56b964fb - and it looks like that moved to a version of cert-manager
which includes the removal of SetBinariesPath
. The var declaration for kubeBuilderBinPath
was correctly stripped away, but the call to dns.SetBinariesPath
and a reference to the now removed kubeBuilderBinPath
still remain.
So, essentially the code in main_test.go
is invalid - at minimum line 20 should be removed.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论