climech / grit

Multitree-based personal task manager
MIT License
1.67k stars 47 forks source link

Cannot build on Ubuntu 18.04 #2

Closed flockster closed 3 years ago

flockster commented 3 years ago

Hi, I'm having problems building the binary on my pc. I extracted the release to my scripts folder on /home/USERNAME/scripts/grit-0.2.0 After running make && sudo make install I get the following error message.

can't load package: package /home/USERNAME/go/grit-0.2.0/cmd/grit: import "/home/USERNAME/go/grit-0.2.0/cmd/grit": cannot import absolute path Makefile:15: recipe for target 'grit' failed make: *** [grit] Error 1

The System is Ubuntu 18.04.5 LTS. gcc is 7.5.0 go is 1.10.4 linux/amd64

Thank you very much

climech commented 3 years ago

Grit requires at least go 1.14 to build properly (go modules were only added in v1.11-12). Updating go should solve the problem.

I'll add a note about this to build instructions.

flockster commented 3 years ago

Perfect, that fixed it.

I installed the go version from the official apt repo, unaware that it was that old. With go 1.16.3 it worked flawlessly.