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

copy: add support for non-octal mode setting #210

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

tonistiigi
Copy link
Owner

prerequisite for moby/buildkit#1951

@tonistiigi tonistiigi changed the title add support for non-octal mode setting copy: add support for non-octal mode setting Sep 28, 2024
@tonistiigi tonistiigi force-pushed the tonistiigi/mode-non-octal branch 2 times, most recently from f86e52c to c34b113 Compare October 1, 2024 05:58
@tonistiigi tonistiigi force-pushed the tonistiigi/mode-non-octal branch from c34b113 to 8f1d41d Compare October 1, 2024 06:02
@tonistiigi tonistiigi requested a review from crazy-max October 1, 2024 06:03
bench/go.mod Outdated
go 1.20
go 1.21

toolchain go1.23.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toolchain strikes again 😅

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:rage1:

Comment on lines +40 to +42
if c.modeSet != nil {
return errors.Errorf("non-octal mode not supported on windows")
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think a module exists for this but I think on Windows we could use golang.org/x/sys/windows to set corresponding Windows ACL permissions if we want that in the future (cc @gabriel-samfira)

@tonistiigi tonistiigi force-pushed the tonistiigi/mode-non-octal branch from 8f1d41d to 3a8c87e Compare October 1, 2024 06:17
@crazy-max crazy-max merged commit e98dfb6 into master Oct 1, 2024
19 checks passed
@@ -9,6 +9,7 @@ require (
github.com/opencontainers/go-digest v1.0.0
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.8.4
github.com/tonistiigi/dchapes-mode v0.0.0-20241001053921-ca0759fec205
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the original repository has a number of tagged versions already; should those be inherited? https://hg.sr.ht/~dchapes/mode/tags

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the same source. I don't plan to make my own releases in the fork.

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

Successfully merging this pull request may close these issues.

3 participants