-
Notifications
You must be signed in to change notification settings - Fork 21
runtime_link.go:8: could not import runtime (open : no such file or directory) #311
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
Comments
After adding some debug, found that
If force |
fixed in 2688f96 |
However, this seems likely not only related to inconsistent build cache, but a bug related cache+overlay combination: The follow image shows: |
The bug could be go's mishandling of Workaround could be making
flags affecting build cache:
|
The go's build action computes cache: inputFiles := str.StringList(
p.GoFiles,
p.CgoFiles,
p.CFiles,
p.CXXFiles,
p.FFiles,
p.MFiles,
p.HFiles,
p.SFiles,
p.SysoFiles,
p.SwigFiles,
p.SwigCXXFiles,
p.EmbedFiles,
)
for _, file := range inputFiles {
fmt.Fprintf(h, "file %s %s\n", file, b.fileHash(filepath.Join(p.Dir, file)))
} |
We can't fully suppress this failure. Currently if user encounter such error, add a It already shows that in some cases with some specific building sequence, this bug can be replicated. |
fixed in The issue occurs after go1.19, tests show go1.17 and go1.18 are ok:
|
This is an issue from github workflow:
It can be replicated in local with:
go run ./script/run-test --include go1.19.13 --with-setup-only --log-debug -v ./runtime/test/build/modules_with_trap_all/service
It seems caused by
-overlay
, after removing the overlay content, the build passes.The text was updated successfully, but these errors were encountered: