Skip to content

cmd/go: go get needs some way to set missing user.email (maybe user.name) information in repos it pulls #16516

@dakotahawkins

Description

@dakotahawkins
  1. What version of Go are you using (go version)?

    go version go1.6.2 windows/amd64
    
  2. What operating system and processor architecture are you using (go env)?

    set GOARCH=amd64
    set GOBIN=
    set GOEXE=.exe
    set GOHOSTARCH=amd64
    set GOHOSTOS=windows
    set GOOS=windows
    set GOPATH=E:\src\Go
    set GORACE=
    set GOROOT=C:\Go
    set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
    set GO15VENDOREXPERIMENT=1
    set CC=gcc
    set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
    set CXX=g++
    set CGO_ENABLED=1
    
  3. What did you do?

    • Global .gitconfig has user.name set and user.useConfigOnly = true, while user.email is purposefully unset.
      • This is to support using a personal address for personal repos, and a work address for work repos.
  4. What did you expect to see?

    • Some mechanism for setting the missing information ahead of time
  5. What did you see instead?

    • go get pulls from git remotes (e.g. github) fail because their individual repo configs require user.email to be set
      • Especially annoying when another tool is trying to do this for you (e.g. vscode)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions