Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
add Go modules support #971
Conversation
…d. The fastmod is read-only for go.mod, please 'go mod tidy' first if need.
|
||
func (s *Session) CheckModFromDir(dir string) { | ||
s.mod, _ = fastmod.LoadPackage(dir, s.bctx) | ||
} |
nevkontakte
Feb 26, 2020
Contributor
I rather like this PR, but these two functions make the code rely on side-effects, which is quite error prone and brittle. Perhaps module info should be added to PackageData?
Note: I'm not a GopherJS maintainer, so my words carry limited weight :)
Add Go modules build/run support and test. ( project use
go env GOMOD
lookup go.mod)add fastmod for check Go modules and lookup package from go.mod.
The fastmod is read-only for go.mod, please 'go mod tidy' first if need.