-
Notifications
You must be signed in to change notification settings - Fork 26
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
postal.service.Deliver missing files while extracting dependency #245
Comments
Looks like these are hardlinks and we aren't handling that case in the packit/vacation/tar_archive.go Lines 92 to 115 in 41a40d9
|
arjun024
added a commit
that referenced
this issue
Nov 11, 2021
arjun024
added a commit
to paketo-buildpacks/php-dist
that referenced
this issue
Nov 11, 2021
Protects against issues like paketo-buildpacks/packit#245
5 tasks
arjun024
added a commit
to paketo-buildpacks/php-dist
that referenced
this issue
Nov 11, 2021
Protects against issues like paketo-buildpacks/packit#245
thitch97
pushed a commit
to paketo-buildpacks/php-dist
that referenced
this issue
Nov 17, 2021
Protects against issues like paketo-buildpacks/packit#245
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
Deliver()
to extract dependencies, some files are missing in theextracted output. These files seem to have identical content but with different
names.
This issue is causing php-dist to form a malformed layer thereby failing tests
in downstream buildpack like php-composer (link) and php-web (link).
What happened
lib
directory which has contents that includes the following:Deliver()
, we would expect all these files to be exactly in place.Deliver()
, the output is as followsthe file contained in the output (e.g.
libizip.so
) is the first file that appear in the tar archive. Other files withthe same content are ignored (e.g.
libizip.so.4
).How to reproduce
go mod init main && go mod tidy && go run main.go
deliveroutput
created which you'll notice is missingfiles as explained above.
Build Configuration
Notes
This was found as a result of paketo-buildpacks/php-dist#253
where we are no longer packaging up a tarball that has symlink references to external file
locations and instead using
--dereference
when archiving.Checklist
cc @thitch97
The text was updated successfully, but these errors were encountered: