jakejarvis / hugo-mod-twemoji

Twemojis as a plug-and-play module for Hugo sites 📦
https://twemoji.twitter.com/
MIT License
16 stars 3 forks source link

Invalid github.com import path #4

Open c01dc0ffee opened 3 years ago

c01dc0ffee commented 3 years ago

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.

h2kyaw commented 1 year ago

they don't care more. 😭