Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid github.com import path #4

Open
c01dc0ffee opened this issue Apr 18, 2021 · 1 comment
Open

Invalid github.com import path #4

c01dc0ffee opened this issue Apr 18, 2021 · 1 comment

Comments

@c01dc0ffee
Copy link

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
Copy link

h2kyaw commented Aug 22, 2023

they don't care more. 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants