cmd/go/internal/vcs: use 0o for octal

Change-Id: I011cd7e1c2c614e2c5c4a0fadf062ac9be2266aa
Reviewed-on: https://go-review.googlesource.com/c/go/+/736440
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Josh Bleecher Snyder
2026-01-08 14:50:45 -08:00
parent dcb42485ac
commit 6ba3494e16

View File

@@ -551,7 +551,7 @@ func (v *Cmd) Ping(scheme, repo string) error {
if !cfg.ModulesEnabled {
dir = filepath.Join(cfg.BuildContext.GOPATH, "src")
}
os.MkdirAll(dir, 0777) // Ignore errors — if unsuccessful, the command will likely fail.
os.MkdirAll(dir, 0o777) // Ignore errors — if unsuccessful, the command will likely fail.
release, err := base.AcquireNet()
if err != nil {