You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: