yorukot / superfile

Pretty fancy and modern terminal file manager

Home Page:https://superfile.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go module in wrong directory: prevents "go install"

clausecker opened this issue · comments

I would like to download and install superfile by running

go install -v github.com/MHNightCat/superfile/src@v1.1.2

However, this fails as your go.mod in subdirectory src declares the wrong module path:

go: downloading github.com/MHNightCat/superfile v1.1.2
go: downloading github.com/MHNightCat/superfile/src v0.0.0-20240512124038-cb803c825e23
go: github.com/MHNightCat/superfile/src@latest: version constraints conflict:
	github.com/MHNightCat/superfile/src@v0.0.0-20240512124038-cb803c825e23: parsing go.mod:
	module declares its path as: github.com/MHNightCat/superfile
	        but was required as: github.com/MHNightCat/superfile/src

Please fix this by either moving go.mod and go.sum to the top level directory, or rename the module to github.com/MHNightCat/superfile/src in the subdirectory.

This change is required so we can add this project to FreeBSD ports using the preferred mechanism for building Go binaries.

OK!
Updated it.

Great! With this, I'm confident I can package this great application.

I've prepared a package which will be uploaded in the next few days once it has passed build testing.

Thanks a lot!