-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: incorrect permissions (0400, read-only) set by go mod vendor
?
#27455
Comments
For a repo The directory The permission of directories in All files in This looks like a feature, but currently it is inconsistent. |
In my case: https://slexy.org/view/s2deKExjfk I don't see why it should be the case, I have to either recursively change the permissions, |
I tested with an outdated |
@rsc discussed this on the mailing list on July 13:
|
This is, as @mark-rushakoff pointed out, working as intended. The integrity of |
go mod vendor
go mod vendor
?
Is it a reasonable way to ensure data integrity? What is the reasoning behind this? Human error, as in accidental typing of |
You make a fair point which is why Russ commented:
This minor pain is alleviated by |
|
Ok, so |
Duplicate of #27161 |
@benixlinux This is not the appropriate forum for your comment. If you'd like to make a Code of Conduct report, you can follow the process at https://golang.org/conduct. |
go 1.11 added modules, which are cached locally. The go developers have decided to make this cache read-only (golang/go#27455), which causes problems with package clean / autoremove (openwrt#7635). This adds a call to clear this cache right after building, as currently there is no easy way to hook into autoremove (it may be possible to hook into package clean). This also adds whitespace (blank lines) to certain places in make output, to aid debugging. Signed-off-by: Jeffery To <[email protected]>
go 1.11 added modules, which are cached locally. The go developers have decided to make this cache read-only (golang/go#27455), which causes problems with package clean / autoremove (openwrt#7635). This adds a call to clear this cache right after building, as currently there is no easy way to hook into autoremove (it may be possible to hook into package clean). This also adds whitespace (blank lines) to certain places in make output, to aid debugging. Signed-off-by: Jeffery To <[email protected]>
delete $GOPATH/pkg/mod/* ref: golang/go#27455
using MODGO_MODNAME. This is needed to work around this issue: golang/go#27455 which makes `make clean` because of the restrictive permissions. input and corrections from sthen@ and jca@ ok sthen@ jca@ espie@
What version of Go are you using (
go version
)?go version go1.11 linux/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
I expected to have read and write permissions (i.e. have at the very least
0600
, but apparently ALLpkg/mod/*/*/*@*/*.go
files are read-only (0400/-r--------
). Is this a bug or feature? It's definitely an annoyance.What did you see instead?
The text was updated successfully, but these errors were encountered: