Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: go fmt does not obey ignored files rules #6805

Closed
davecheney opened this issue Nov 21, 2013 · 2 comments
Closed

cmd/go: go fmt does not obey ignored files rules #6805

davecheney opened this issue Nov 21, 2013 · 2 comments

Comments

@davecheney
Copy link
Contributor

What steps will reproduce the problem?

lucky(~/src/woo) % echo "package woo;var      format  =    bool" > woo.go
lucky(~/src/woo) % echo "package woo;var      format  =    bool" > _woo.go
lucky(~/src/woo) % go list -f '{{ .GoFiles }}'
[woo.go]
lucky(~/src/woo) % go fmt 
_woo.go
woo.go

What is the expected output? What do you see instead?

go list says that there is one file in this project, _woo.go is ignored correctly.

go fmt touches _woo.go, which is incorrect.

Please use labels and text to provide additional information.
@minux
Copy link
Member

minux commented Nov 21, 2013

Comment 1:

actually i think this might be intended.
for example, if you're working on linux, do you expect go fmt to format foo_darwin.go?

@rsc
Copy link
Contributor

rsc commented Nov 21, 2013

Comment 2:

See issue #4007.

Status changed to WorkingAsIntended.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants