Closed rehandaphedar closed 2 months ago
Hi, great project, especially useful as a psuedo CMS for Hugo!
On Arch Linux, with go version go1.23.0 linux/amd64, running go install github.com/etkecc/emm@latest fails with:
go version go1.23.0 linux/amd64
go install github.com/etkecc/emm@latest
go: github.com/etkecc/emm@latest: module github.com/etkecc/emm@latest found (v0.9.8), but does not contain package github.com/etkecc/emm
I thought the golang proxy cache might have gotten stale, so I tried with GOPROXY=direct, still fails.
GOPROXY=direct
Manually building after cloning the repository works. For now, I'm using the AUR package, which also works.
go.mod does contain module github.com/etkecc/emm. However, there is no main.go file in the root directory, which I suspect is the cause.
go.mod
module github.com/etkecc/emm
main.go
Running go install github.com/etkecc/emm/cmd@latest works, but it installs the binary as cmd, not as emm.
go install github.com/etkecc/emm/cmd@latest
cmd
emm
Also, I see that cmd/main.go contains package main instead of package cmd.
cmd/main.go
package main
package cmd
The solution seems to be to move/rename cmd/main.go to main.go, as per the golang documentation.
Oh great speed! I was just about to make a PR for this.
Thank you for bringing this to our attention! The fix is available in the latest release
Hi, great project, especially useful as a psuedo CMS for Hugo!
On Arch Linux, with
go version go1.23.0 linux/amd64
, runninggo install github.com/etkecc/emm@latest
fails with:I thought the golang proxy cache might have gotten stale, so I tried with
GOPROXY=direct
, still fails.Manually building after cloning the repository works. For now, I'm using the AUR package, which also works.
go.mod
does containmodule github.com/etkecc/emm
. However, there is nomain.go
file in the root directory, which I suspect is the cause.Running
go install github.com/etkecc/emm/cmd@latest
works, but it installs the binary ascmd
, not asemm
.Also, I see that
cmd/main.go
containspackage main
instead ofpackage cmd
.The solution seems to be to move/rename
cmd/main.go
tomain.go
, as per the golang documentation.