]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix GOAUTH parsing for trailing slash
authorSam Thanawalla <samthanawalla@google.com>
Wed, 2 Apr 2025 20:30:37 +0000 (20:30 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 7 Apr 2025 14:33:33 +0000 (07:33 -0700)
commite8adc393327c92525902d38a34af7f2a24e78e25
tree8c913508701a86a37a6425a01d082b0e3c090520
parent16dbd2be3969f4658ced59ddb89871d9f00cf3a5
cmd/go: fix GOAUTH parsing for trailing slash

We were treating a url with a trailing slash differently than one
without. This CL treats them the same.

Additionally this fixes a bug in the way we iteratively try different
prefixes. We were only trying the host url but this change now tries all
different prefixes.

Fixes: #71889
Change-Id: I5d5f43000ae0e18ea8682050037253aff75ec142
Reviewed-on: https://go-review.googlesource.com/c/go/+/662435
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/auth/auth.go
src/cmd/go/internal/auth/auth_test.go
src/cmd/go/internal/help/helpdoc.go