cmd/go/internal/modfetch: make source cache directories unwritable

When we run tests of dependency packages,
we run them in their source directories
(as we do for all tests).

Discourage modification of the source directories
by marking them unwritable. This will undoubtedly
break some tests that write temporary files to the
current directory and then clean up after themselves.
That's OK: those tests should be fixed.
(We have a bunch of those ourselves, to be sure.)

Change-Id: Ie0e6713c0121a359b2f7153fe6cf27eac381b931
Reviewed-on: https://go-review.googlesource.com/122401
Reviewed-by: Bryan C. Mills <bcmills@google.com>
3 files changed
tree: b77fc457998ca10628ff0ea1eb7cd1a1de42bce8
  1. AUTHORS
  2. CONTRIBUTING.md
  3. CONTRIBUTORS
  4. LICENSE
  5. PATENTS
  6. README.md
  7. codereview.cfg
  8. main.go
  9. vendor/
README.md

Versioned Go Prototype (vgo)

This repository holds a prototype of what the go command might look like with integrated support for package versioning.

See research.swtch.com/vgo for documents about the design.

Download/Install

Use go get -u golang.org/x/vgo.

You can also manually git clone the repository to $GOPATH/src/golang.org/x/vgo.

Report Issues / Send Patches

See CONTRIBUTING.md.

This is still a very early prototype. You are likely to run into bugs. Please file bugs in the main Go issue tracker, golang.org/issue, and put the prefix x/vgo: in the issue title.

Thank you.