]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/vcs: use 0o for octal
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 8 Jan 2026 22:50:45 +0000 (14:50 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 22 Jan 2026 20:12:45 +0000 (12:12 -0800)
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>
src/cmd/go/internal/vcs/vcs.go

index 9e8efaf20634cca7540350f4ce3830d6cc6879ac..98ed77d80d6fc89c30e317d4155052baa3d8f635 100644 (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 {