-
Notifications
You must be signed in to change notification settings - Fork 23
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
Don't write duplicate entries e.g. symlinks to tar file #88
Comments
Do you have a reproducer? |
|
So the overlap is in usr/lib/.build-id that I think we should ignore anyway, how does the error manifest? What are your bazel calls that leads to the issue? Could you make a repro repo so we can test things? |
rpm2tar writes its symlinks ( https://github.com/rmohr/bazeldnf/blob/main/cmd/rpm2tar.go#L64 ) before the actual files from all rpms. But because the collector doesn't know that the symlinks are written (they get directly add to the tarWriter), the original file is also added. e.g. /usr/bin/ld If you try to run the |
So ld comes from the symlinks you're passing into the rpmtree call and from 1 of the rpms (not from both). The only overlapping file is in the path I mentioned, I opened both rpms manually. |
Currently there are multiple entries for the same target file inside a rpm2tar result. Because of this, it isn't possible to build e.g. an oci_layer out of it. The symlinks should be add to the collectors map of written files and the collector should skip and write for these
The text was updated successfully, but these errors were encountered: