]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add built in git mode for GOAUTH
authorSam Thanawalla <samthanawalla@google.com>
Tue, 13 Aug 2024 17:01:47 +0000 (17:01 +0000)
committerSam Thanawalla <samthanawalla@google.com>
Tue, 5 Nov 2024 20:08:39 +0000 (20:08 +0000)
commit635c2dce04259f2c84aeac543f0305b3e7c8ed7b
tree85f1f2dd6724c97d77fa8060c810df6a0e6509be
parent3b94c357f8c050edd8cbbf2438873fb5ea7636b1
cmd/go: add built in git mode for GOAUTH

This CL adds support for git as a valid GOAUTH command.
Improves on implementation in cmd/auth/gitauth/gitauth.go
This follows the proposed design in
https://golang.org/issues/26232#issuecomment-461525141

For #26232
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Change-Id: I07810d9dc895d59e5db4bfa50cd42cb909208f93
Reviewed-on: https://go-review.googlesource.com/c/go/+/605275
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/auth/auth.go
src/cmd/go/internal/auth/gitauth.go [new file with mode: 0644]
src/cmd/go/internal/auth/gitauth_test.go [new file with mode: 0644]
src/cmd/go/internal/help/helpdoc.go
src/cmd/go/internal/web/http.go
src/cmd/go/testdata/script/goauth_git.txt [new file with mode: 0644]