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

cmd/go: test failing to initialize build cache #30914

Closed
katiehockman opened this issue Mar 18, 2019 · 4 comments

Comments

Projects
None yet
6 participants
@katiehockman
Copy link
Contributor

commented Mar 18, 2019

cmd/go tests are failing for darwin-arm64-mn4m2zdaios and darwin-arm-mg912baios builds

lldb: running program
2019/03/18 20:16:58 failed to initialize build cache at /private/var/folders/qq/qxn86k813bn9fjxydm095rxw0000gp/T/workdir-host-darwin-amd64-zenly-ios/go/pkg/obj/go-build: mkdir /private/var/folders/qq: operation not permitted
FAIL	cmd/go	117.729s

Seems somewhat related to #29523

https://build.golang.org/log/e556301592beb290f2a21aafacf76f4176552ab1
https://build.golang.org/log/2bb2f1740aec8d028fa98073bc4c0d3810842d33

Though I'm not convinced that it's related, the failures started after 47e42cd was merged

/cc @bcmills @ianlancetaylor

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Mar 18, 2019

@dmitshur

This comment has been minimized.

Copy link
Member

commented Mar 19, 2019

Another possible cause is CL 167087, the CL that changed the default value of GO111MODULE to 'on'. It was 3 commits earlier, and there are no test results for it for those 2 builders.

It could be related to symlinks and the temporary directory on Darwin. I.e., os.TempDir() is usually something like /var/folders/b8/66r1c5856mqds1mrf2tjtq8w0000gn/T/ but /var is a symlink to /private/var.

@bradfitz

This comment has been minimized.

Copy link
Member

commented Mar 19, 2019

@eliasnaur has been working on these.

@gopherbot

This comment has been minimized.

Copy link

commented Mar 21, 2019

Change https://golang.org/cl/168557 mentions this issue: misc/ios: don't override GOCACHE on the device

@gopherbot gopherbot closed this in 7ae8e53 Mar 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.