Skip to content

go fmt traversing .git repository? #5488

@gopherbot

Description

@gopherbot

by chris@altonymous.com:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Run go fmt on a directory that is a git clone.
2. It traverses the .git repository and throws errors

What is the expected output?
I expect it to ignore the hidden directories, aka .git

What do you see instead?
Instead I get errors about files that no longer exist because it's traversing the git
repository history files.

Which compiler are you using (5g, 6g, 8g, gccgo)?
std

Which operating system are you using?
OS X

Which version are you using?  (run 'go version')
1.1

Please provide any additional information below.
Didn't happen to me when I was running 1.0.3

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