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

Error installing on rm2 #15

Open
francoissabot opened this issue Apr 23, 2021 · 4 comments
Open

Error installing on rm2 #15

francoissabot opened this issue Apr 23, 2021 · 4 comments

Comments

@francoissabot
Copy link

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
Copy link
Owner

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
Copy link
Owner

GliderGeek commented Apr 23, 2021

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
Copy link
Owner

@francoissabot : any luck with this approach?

@francoissabot
Copy link
Author

Yes working! Thanks

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