-
Notifications
You must be signed in to change notification settings - Fork 18k
x/telemetry: [email protected]/
directory is mode 0555
, not 0755
, in the go mod cache after go mod vendor -modcacherw
#69239
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
Comments
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
the entire mod cache is intentionally read only. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
hi @seankhliao thank you for responding, could you please reconsider. I realalise the cache is read only, however when running
I have a simple cobra script which causes this, here is the go.mod:
|
[email protected]/
directory is mode 0555
, not 0755
[email protected]/
directory is mode 0555
, not 0755
, in the go mod cache after -modcacherw
[email protected]/
directory is mode 0555
, not 0755
, in the go mod cache after -modcacherw
[email protected]/
directory is mode 0555
, not 0755
, in the go mod cache after go mod vendor -modcacherw
I have updated the reproducible "What did I do section", Please let me know if this is something that could be reopen :) |
see #68946 |
I see, thank you @seankhliao |
Go version
go version go1.23.0 linux/arm64
Output of
go env
in your module/workspace:What did you do?
I have somewhat an interesting setup but for the sake of a reproducible I ran the following commands:
main.go
:Ran these commands
Created this
Dockerfile
:Within the docker container:
What did you see happen?
The problem is the
[email protected]
directory that comes with thisx/telemtry
package is not writeable by the owner, typically directories are0755
.I also ran
stat $GOPATH/pkg/mod/golang.org/x/telemetry/[email protected]/
which shows
Access: (0555/dr-xr-xr-x)
What did you expect to see?
I expect directories to be
0755
so that they can be removed by owners.It seems like this
telemtry
package is new https://pkg.go.dev/golang.org/x/telemetry?tab=versions (in existence since only Aug 28 2024).In the Docker example above, I can remove the directory, since you're root in docker. But in other setups where this directory exists (I can share further details on how such a setup gets ends up with this file) I would expect them to be
0755
so that they could be removed.Is it intentional for this directory to be
0555
?The text was updated successfully, but these errors were encountered: