TMSU icon indicating copy to clipboard operation
TMSU copied to clipboard

Can't build TMSU

Open NaurizAitbai opened this issue 4 years ago • 5 comments

Hello. I can't build TMSU, I installed dependencies and inside TMSU folder when call make it says this:

CLEANING

go clean github.com/oniony/TMSU
no required module provides package github.com/oniony/TMSU: working directory is not part of a module
make: *** [Makefile:24: clean] Error 1

NaurizAitbai avatar Feb 27 '21 21:02 NaurizAitbai

Same issue here. The whole structure seems a bit weird... If one was to move all the src/github.com/oniony/TMSU/* files to the root of the repository, this whole project could be installed with go install github.com/oniony/TMSU without cloning the repo yourself, as long as $GOPATH is set up. Also, after moving the code around, you could init a go module (go mod github.com/oniony/TMSU), which would make building alot easier...

ekkkkkknoes avatar Mar 15 '21 16:03 ekkkkkknoes

I have created a pull request to fix this issue, hope it helps. #227

ekkkkkknoes avatar Mar 15 '21 16:03 ekkkkkknoes

I have created a pull request to fix this issue, hope it helps. #227

I fixed it. You need to set this:

go env -w GO111MODULE=auto

NaurizAitbai avatar Mar 22 '21 20:03 NaurizAitbai

it would help to properly fix this. it breaks even the AUR package: https://aur.archlinux.org/packages/tmsu/#comment-835066

scharlach avatar Nov 10 '21 20:11 scharlach

OK, I'll take a look but won't be until weekend.

oniony avatar Nov 10 '21 20:11 oniony