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

go install fails with golang 1.16 #288

Open
mgidding opened this issue Mar 30, 2021 · 1 comment
Open

go install fails with golang 1.16 #288

mgidding opened this issue Mar 30, 2021 · 1 comment

Comments

@mgidding
Copy link

Hi, when I try to install mumax3 (version 3.10) with go 1.16.2 I get the following error:

maxime@maxime-desktop mumax3 % go install go: go.mod file not found in current directory or any parent directory; see 'go help modules'

The exact same command works fine with go 1.15.10 however, resulting in a working mumax3 binary.

@godsic
Copy link
Contributor

godsic commented Mar 31, 2021

@mgidding Starting with go 1.16 use of modules is mandatory. Until mumax3 is converted to go module, you can workaround by running go mod init in mumax3 root folder and then compile / install it as usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants