Skip to content

go/src/all.bash: Mac OS X TMP directory not writable #76079

@odysseus9672

Description

@odysseus9672

Go version

go version go1.26-devel_dfac972233 Thu Oct 23 14:44:03 2025 -0700 darwin/arm64

Output of go env in your module/workspace:

go env
go: creating work dir: mkdir /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/go-build4233801866: permission denied

What did you do?

I ran this script on Mac OS X 15.7.1 to update my go install in ~/goLang/go:

#!/usr/bin/env bash
trap 'echo goupdate.sh exited with error; exit 1;' ERR

export GOROOT_BOOTSTRAP=$HOME/golang/go1.25.0
export OLDGOMAXPROCS=$GOMAXPROCS
export GOMAXPROCS=8

curdir=`pwd`
cd $HOME/golang/go/src
git fetch
#git checkout master
git -c pull.rebase=false pull
./all.bash
#./sudo.bash
cd $curdir

export GOMAXPROCS=$OLDGOMAXPROCS
unset OLDGOMAXPROCS
unset GOROOT_BOOTSTRAP

What did you see happen?

I get this output:

Already up to date.
Building Go cmd/dist using /Users/sean/golang/go1.25.0. (go1.25.0 darwin/arm64)
go: creating work dir: mkdir /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/go-build3639827534: permission denied
goupdate.sh exited with error

What did you expect to see?

The build and test process from running all.bash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions