Skip to content

Commit

Permalink
Makefile: make GOROOT writable before patching
Browse files Browse the repository at this point in the history
Since go commit 02d24fc25285, the GOROOT directory has been made
read-only, this affects the go1.13beta1 binary tarball as used by Travis
CI. See golang/go#30316
  • Loading branch information
Lekensteyn committed Aug 13, 2019
1 parent 14e251c commit 7598425
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _dev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ $(GOROOT_LOCAL)/pkg/.ok_$(VER_OS_ARCH): $(GOROOT_ENV)/pkg | $(GOROOT_LOCAL)/src/
cp -r $(GOROOT_ENV)/src $(GOROOT_LOCAL)/
cp -r $(GOROOT_ENV)/pkg/include $(GOROOT_LOCAL)/pkg/
cp -r $(GOROOT_ENV)/pkg/tool $(GOROOT_LOCAL)/pkg/
# Ensure GOROOT sources are writable to make patching possible.
chmod -R u+w $(GOROOT_LOCAL)/src
# Apply additional patches to stdlib
for p in $(wildcard $(DEV_DIR)/patches/*); do patch -d "$(GOROOT_LOCAL)" -p1 < "$$p"; done
touch $@
Expand Down

0 comments on commit 7598425

Please sign in to comment.