Error go test -v on https://github.com/slicen/cert-manager-webhook-linode

huangapple go评论100阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2022年10月21日 12:13:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/74148691.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定