mkdir example
cd example
go mod init modname
echo'package main; func main() {println("This is an example.")}'> example.go
go build -v # This produces a file called 'modname'.
go clean -x # This attempts to delete a file called 'example'.
What did you expect to see?
go clean should use the module name to delete rather than the directory name.
What did you see instead?
go clean attempted to use the directory name to delete the previously created executable.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
go clean
should use the module name to delete rather than the directory name.What did you see instead?
go clean
attempted to use the directory name to delete the previously created executable.The text was updated successfully, but these errors were encountered: