-
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
copy: add support for non-octal mode setting #210
Conversation
f86e52c
to
c34b113
Compare
c34b113
to
8f1d41d
Compare
bench/go.mod
Outdated
go 1.20 | ||
go 1.21 | ||
|
||
toolchain go1.23.1 |
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.
toolchain strikes again 😅
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.
if c.modeSet != nil { | ||
return errors.Errorf("non-octal mode not supported on windows") | ||
} |
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.
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)
Signed-off-by: Tonis Tiigi <[email protected]>
8f1d41d
to
3a8c87e
Compare
@@ -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 |
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.
I see the original repository has a number of tagged versions already; should those be inherited? https://hg.sr.ht/~dchapes/mode/tags
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.
This is not the same source. I don't plan to make my own releases in the fork.
prerequisite for moby/buildkit#1951