-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix tests on windows and add workflow #143
Fix tests on windows and add workflow #143
Conversation
Make sure all paths are properly formatted and the package works on Windows.
Noticed a couple of bugs. Fixing and committing soon. |
71e369c
to
9b2fff1
Compare
The c.chowner function was being ignored. This change makes use of the supplied chowner and calls Chown() on the file. If no chowner is specified, we copy over the DACL and owner information from the source.
9b2fff1
to
e66cb41
Compare
This is ready for review when you get a chance. The bug I noticed was in As a side note, I have been investigating why ownership information doesn't carry from layer to layer. Only DACLs seem to carry over. This seems to be a limitations in It's worth having this code added, however, as once that behavior is fixed in HCS, we would already have coverage in buildkit/containerd/moby. Also, DACLs seem to be retained, which should allow users to retain whatever access they had to the file regardless of who owns it. |
Hi! Does anyone have some time to review these changes? 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't have notifications set up for this repo.
Left a couple of quick comments. If the path conversions are needed in existing files we might need to do it in separate commits or prs so they can be evaluated more clearly if the use-case requires normalized path or current system path.
Feel free to move the functionally separate parts to smaller PRs for easier review. |
Splitting this up in multiple PRs today. Thanks for the review, and apologies about the delay! |
Mistakenly removed those tests and the mod time code. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
535717d
to
4594477
Compare
This change adds a new workflow to test this project on Windows. It also fixes tests and some functionality.
ErrNotSupported
is ignored when resolvingxattrs
, which is unsupported on Windows.Fixes: #142