GliderGeek / pocket2rm

get articles from read-later platform pocket to the remarkable paper tablet
MIT License
184 stars 15 forks source link

Error installing on rm2 #15

Open francoissabot opened 3 years ago

francoissabot commented 3 years ago

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 ?

GliderGeek commented 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)

GliderGeek commented 3 years ago

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

GliderGeek commented 3 years ago

@francoissabot : any luck with this approach?

francoissabot commented 3 years ago

Yes working! Thanks