I was having a problem importing this module into my project.
The Hugo website says to use this syntax:
hugo mod init github.com/<your_user>/<your_project>
After that, hugo mod get -u produces this error:
go get github.com/jakejarvis/hugo-mod-twemoji: invalid github.com import path "github.com/jakejarvis"
I was able to fix this by removing the project import from go.mod in my project directory and using hugo mod init https://github.com/jakejarvis/hugo-mod-twemoji/go.mod instead.
I'm not sure why this works. Maybe because there was no trailing slash after the project name.
I was having a problem importing this module into my project.
The Hugo website says to use this syntax:
hugo mod init github.com/<your_user>/<your_project>
After that,
hugo mod get -u
produces this error:go get github.com/jakejarvis/hugo-mod-twemoji: invalid github.com import path "github.com/jakejarvis"
I was able to fix this by removing the project import from
go.mod
in my project directory and usinghugo mod init https://github.com/jakejarvis/hugo-mod-twemoji/go.mod
instead.I'm not sure why this works. Maybe because there was no trailing slash after the project name.