You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This builds on Windows but not on Linux. On the first line, the comment should be ignored. It's not ignored and the build fails because it evaluates the import statement. Ideally one would never put an incorrect import statement and not on the first line with the package declaration. But also, everything should be avoided after the comment, irregardless of statement.
Please answer these questions before submitting your issue. Thanks!
What did you do?
Two different files
package main // import "github.com/dummy"
What did you expect to see?
Build
This builds on Windows but not on Linux. On the first line, the comment should be ignored. It's not ignored and the build fails because it evaluates the import statement. Ideally one would never put an incorrect import statement and not on the first line with the package declaration. But also, everything should be avoided after the comment, irregardless of statement.
What did you see instead?
can't load package: package github.com/ajholland/hello: code in directory /home/alex/goWork/src/github.com/ajholland/hello expects import "github.com/dummy"
System details
The text was updated successfully, but these errors were encountered: