cloudflare / cloudflare/hellogopher

make test (and x-compile) fails if stdlib folder is not writeable

Open
#7 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
1.1k
Forks
56
PR merge metrics
No merged PRs in 30d

Description

Hi,

I've given `hellogopher` a try for an internal project at work to replace our own homegrown Makefile but I'm stumped on this error:

```
$ make test
go install errors: open /usr/local/go/pkg/darwin_amd64_race/errors.a: permission denied
go install internal/race: open /usr/local/go/pkg/darwin_amd64_race/internal/race.a: permission denied
go install encoding: open /usr/local/go/pkg/darwin_amd64_race/encoding.a: permission denied
go install unicode/utf16: open /usr/local/go/pkg/darwin_amd64_race/unicode/utf16.a: permission denied
go install unicode/utf8: open /usr/local/go/pkg/darwin_amd64_race/unicode/utf8.a: permission denied
go install crypto/subtle: open /usr/local/go/pkg/darwin_amd64_race/crypto/subtle.a: permission denied
go install crypto/internal/cipherhw: open /usr/local/go/pkg/darwin_amd64_race/crypto/internal/cipherhw.a: permission denied
go install internal/nettrace: open /usr/local/go/pkg/darwin_amd64_race/internal/nettrace.a: permission denied
go install container/list: open /usr/local/go/pkg/darwin_amd64_race/container/list.a: permission denied
go install vendor/golang_org/x/crypto/curve25519: open /usr/local/go/pkg/darwin_amd64_race/vendor/golang_org/x/crypto/curve25519.a: permission denied
go install unicode: open /usr/local/go/pkg/darwin_amd64_race/unicode.a: permission denied
go install math: open /usr/local/go/pkg/darwin_amd64_race/math.a: permission denied
make: *** [test] Error 1
```

I'm running:
```
$ go version
go version go1.8rc2 darwin/amd64
```

Any tips on where to look to try to get this working?

Contributor guide

Open the contributing guide

Research direction

Start with the make test target and the x-compile path mentioned in the issue, then reproduce the failure with a non-writeable Go stdlib directory. Trace how these targets invoke go install and define done as completing both operations without permission errors in that environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.