[GH-ISSUE #5] go get fails #2

Closed
opened 2026-02-16 12:57:45 -05:00 by yindo · 5 comments
Owner

Originally created by @noerw on GitHub (Dec 4, 2018).
Original GitHub issue: https://github.com/go-gitea/tea/issues/5

I cant download the package as suggested (go get github.com/go-gitea/tea), it fails with the following error message:

can't load package: package github.com/go-gitea/tea: code in directory /home/norwin/src/github.com/go-gitea/tea expects import "code.gitea.io/tea"

Doing go get code.gitea.io/tea works, but this package seems to not represent the current version from github.

Originally created by @noerw on GitHub (Dec 4, 2018). Original GitHub issue: https://github.com/go-gitea/tea/issues/5 I cant download the package as suggested (`go get github.com/go-gitea/tea`), it fails with the following error message: ``` can't load package: package github.com/go-gitea/tea: code in directory /home/norwin/src/github.com/go-gitea/tea expects import "code.gitea.io/tea" ``` Doing `go get code.gitea.io/tea` works, but this package seems to not represent the current version from github.
yindo closed this issue 2026-02-16 12:57:45 -05:00
Author
Owner

@noerw commented on GitHub (Dec 4, 2018):

Ok, I got my dev environment set up the following way. I suppose thats not the right way?

mkdir -p $GOPATH/src/github.com/go-gitea
cd $GOPATH/src/github.com/go-gitea
git clone https://github.com/go-gitea/tea
cd tea
go get -v -d ./

Then in each of the tea, go-sdk, git repositories:

  • replace all occurences of code.gitea.io/sdk with github.com/go-gitea/go-sdk
  • replace all occurences of code.gitea.io with github.com/go-gitea

then run go get -v -d ./ again.

@noerw commented on GitHub (Dec 4, 2018): Ok, I got my dev environment set up the following way. I suppose thats not the right way? ```sh mkdir -p $GOPATH/src/github.com/go-gitea cd $GOPATH/src/github.com/go-gitea git clone https://github.com/go-gitea/tea cd tea go get -v -d ./ ``` Then in each of the `tea`, `go-sdk`, `git` repositories: - replace all occurences of `code.gitea.io/sdk` with `github.com/go-gitea/go-sdk` - replace all occurences of `code.gitea.io` with `github.com/go-gitea` then run `go get -v -d ./` again.
Author
Owner

@techknowlogick commented on GitHub (Dec 4, 2018):

@lunny I’m on mobile so I can’t check now but I think this can be solved
by adding a new redirect in the go-gitea/redirects repo

@techknowlogick commented on GitHub (Dec 4, 2018): @lunny I’m on mobile so I can’t check now but I think this can be solved by adding a new redirect in the go-gitea/redirects repo
Author
Owner

@techknowlogick commented on GitHub (Dec 4, 2018):

https://github.com/go-gitea/redirects/pull/44 hopefully fixes things

@techknowlogick commented on GitHub (Dec 4, 2018): https://github.com/go-gitea/redirects/pull/44 hopefully fixes things
Author
Owner

@techknowlogick commented on GitHub (Dec 5, 2018):

Closing due to related merge. Please re-open if things still don't work.

@techknowlogick commented on GitHub (Dec 5, 2018): Closing due to related merge. Please re-open if things still don't work.
Author
Owner

@noerw commented on GitHub (Dec 5, 2018):

Now I get the following error:

$ go get code.gitea.io/tea
package code.gitea.io/sdk/gitea: unrecognized import path "code.gitea.io/sdk/gitea" (parse https://code.gitea.io/sdk/gitea?go-get=1: no go-import meta tags ())                                                   

It seems that the code.gitea.io does not support sub-modules?
(It seems I can't reopen the issue)

@noerw commented on GitHub (Dec 5, 2018): Now I get the following error: ``` $ go get code.gitea.io/tea package code.gitea.io/sdk/gitea: unrecognized import path "code.gitea.io/sdk/gitea" (parse https://code.gitea.io/sdk/gitea?go-get=1: no go-import meta tags ()) ``` It seems that the code.gitea.io does not support sub-modules? (It seems I can't reopen the issue)
yindo changed title from go get fails to [GH-ISSUE #5] go get fails 2026-06-05 16:34:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/tea#2