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.mod 如果有 replace 的话,会报错:FATA Fail to build: fail to list package dependencies #387

Open
Chinaren-Wei opened this issue Sep 11, 2024 · 4 comments

Comments

@Chinaren-Wei
Copy link

这个有解决办法不

@wyjlz
Copy link

wyjlz commented Dec 26, 2024

image
我也遇到了同样的问题,能解决吗?

@tonyzz6
Copy link

tonyzz6 commented Jan 9, 2025

我这边也遇到了类似的问题
用go build是没问题的,但是用goc build 就报这个错误,请问是什么问题导致?
image

@tonyzz6
Copy link

tonyzz6 commented Jan 10, 2025

我这边也遇到了类似的问题 用go build是没问题的,但是用goc build 就报这个错误,请问是什么问题导致? image

我这个问题解决了,是依赖包的问题,结合replace把相关报错的package指向本地的模块就行了
看了下源码,ErrCoverListFailed报错(即fail to list package dependencies)就两个地方会抛出,大概率是执行go list -json ./...命令的时候出的错,楼主可以参考下
image

@zhu-zyq
Copy link

zhu-zyq commented Feb 18, 2025

我这边也遇到了类似的问题 用go build是没问题的,但是用goc build 就报这个错误,请问是什么问题导致? image

我这个问题解决了,是依赖包的问题,结合replace把相关报错的package指向本地的模块就行了 看了下源码,ErrCoverListFailed报错(即fail to list package dependencies)就两个地方会抛出,大概率是执行go list -json ./...命令的时候出的错,楼主可以参考下 image

请问您是如何解决的,goc build报错FATA Fail to build: fail to list package dependencies,但是不知道是哪个包的问题

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

4 participants