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

Files in ~/go/VERSION/pkg not user writable #416

Open
jlec opened this issue Dec 7, 2024 · 1 comment
Open

Files in ~/go/VERSION/pkg not user writable #416

jlec opened this issue Dec 7, 2024 · 1 comment

Comments

@jlec
Copy link

jlec commented Dec 7, 2024

For some strange reason files in ~/go/VERSION/pkg are not user writable.

➜  ll ~/go/1.23.4/pkg/mod/sigs.k8s.io/yaml\@v1.4.0/LICENSE
.r--r--r--@ 16k justin  7 Dec 09:23 /Users/justin/go/1.23.4/pkg/mod/sigs.k8s.io/[email protected]/LICENSE

is this by design and if so why? If not, can we make them user writable

@ChronosMasterOfAllTime
Copy link
Contributor

ChronosMasterOfAllTime commented Dec 14, 2024

This is a design of golang itself. Files downloaded by go mod are read only. You can modify the permissions yourself or add a replace line in your go mod file to tell it to point to a modified version of the code.

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

No branches or pull requests

2 participants