go clean
can delete code
#3494
Labels
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Describe the bug
If you name your folder
blah.go
and have you code in a file calledblah.go
, then rungo clean
it will deleteblah.go/blah.go
.Steps to reproduce the behavior:
blah.go
blah.go/blah.go
with contents "package main"blah.go/go.mod
with contents "module blahgo 1.22"
go clean
blah.go/blah.go
is gone.Fix
go clean
should check if folder name ends in.go
before deleting a file named the same as the parent folder.The text was updated successfully, but these errors were encountered: