mumax / 3

GPU-accelerated micromagnetic simulator
Other
447 stars 150 forks source link

go install fails with golang 1.16 #288

Open mgidding opened 3 years ago

mgidding commented 3 years ago

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 commented 3 years ago

@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.