Open francoissabot opened 3 years ago
i have to admit I'm not very familiar with how golang handles its dependencies, but maybe it's related to a missing .mod file and that newer versions of golang expect this?
this problem is probably not related to the remarkable2, since the compilation takes place on your machine. will see if i can figure out what's going wrong.
could you provide me with the go version you run? (go version
)
looking at this i think i found the problem: go 1.16 changed the default behavior of handling modules: https://golang.org/doc/go1.16#go-command
i think a possible work around is installing, while switching to the old behavior: GO111MODULE=auto ./install.sh
@francoissabot : any luck with this approach?
Yes working! Thanks
I tried to install (ubuntu 20.04, go installed) for my rM2, and have a trouble at compiling:
'''' $ ./install.sh
Enter your Remarkable IP address [10.11.99.1]:
compiling pocket2rm... go: cannot find main module, but found .git/config in /home/francois/sources/pocket2rm to create a module there, run: cd ../.. && go mod init ''''
Then it stopped.
Any idea ?