can't load package: package github.com/go-gitea/gitea: code in directory C:\GoPath\src\github.com\go-gitea\gitea expects import "code.gitea.io/gitea" #866

Closed
opened 2025-11-02 03:39:39 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @hsluoyz on GitHub (Jul 3, 2017).

go get error:

C:\WINDOWS\system32>go get -v github.com/go-gitea/gitea
can't load package: package github.com/go-gitea/gitea: code in directory C:\GoPath\src\github.com\go-gitea\gitea expects import "code.gitea.io/gitea"

After some googling, I found that this error is because old path github.com/go-gitea/gitea and new path code.gitea.io/gitea are mixed together, which confuses the go toolchain. So I suggest we add the correct go get command to the README.md like:

###Installation

go get code.gitea.io/gitea

What do you think? Thanks.

Originally created by @hsluoyz on GitHub (Jul 3, 2017). go get error: ``` C:\WINDOWS\system32>go get -v github.com/go-gitea/gitea can't load package: package github.com/go-gitea/gitea: code in directory C:\GoPath\src\github.com\go-gitea\gitea expects import "code.gitea.io/gitea" ``` After some googling, I found that this error is because old path ``github.com/go-gitea/gitea`` and new path ``code.gitea.io/gitea`` are mixed together, which confuses the go toolchain. So I suggest we add the correct go get command to the README.md like: ###Installation go get code.gitea.io/gitea What do you think? Thanks.
GiteaMirror added the type/docs label 2025-11-02 03:39:39 -06:00
Author
Owner

@hsluoyz commented on GitHub (Jul 4, 2017):

Hi @lafriks ,

I have sent a PR here: https://github.com/go-gitea/gitea/pull/2111

Please review.

@hsluoyz commented on GitHub (Jul 4, 2017): Hi @lafriks , I have sent a PR here: https://github.com/go-gitea/gitea/pull/2111 Please review.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#866