Skip to content
New issue

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

go build 编译时包含vendor报错问题 #2

Open
guorunhe opened this issue Sep 21, 2022 · 0 comments
Open

go build 编译时包含vendor报错问题 #2

guorunhe opened this issue Sep 21, 2022 · 0 comments

Comments

@guorunhe
Copy link

在gitlab的pipeline中使用gitlab-runner打包生成镜像,在编译的时候,如果使用了go mod vendor,就会报如下的错,但是如果不包含vendor就正常编译,有人知道这是为什么呢?

# github.com/TingYunGo/goagent /usr/bin/ld: cannot find -ltingyungosdk collect2: error: ld returned 1 exit status make: *** [Makefile:61: build] Error 2
WechatIMG9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant