-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
status: needs feedbackTell me more about itTell me more about it💊 bugSomething isn't workingSomething isn't working
Description
- Gogs version (or commit ref):
0.11.56.0613
- Git version:
git version 2.15.2
- Operating system:
macOS 10.13.5
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gogs.io:
- Yes (for example using https://try.gogs.io/AutuanLiu/golang?go-get=1)
- No
- Not relevant
Description
Executing go get
on a repository hosted by gogs fails with an error
Fetching https://myserver:3000/myUser/myProject?go-get=1
Parsing meta tags from https://myserver:3000/myUser/myProject?go-get=1 (status code 200)
package myserver:3000/myUser/myProject: unrecognized import path "myserver:3000/myUser/myProject" (parse https://myserver:3000/myUser/myProject?go-get=1: no go-import meta tags (meta tag myserver/myUser/myProject did not match import path myserver:3000/myUser/myProject))
It could be that because my gogs server uses a different port that the template used to generate the go-import meta tags don't properly get that port.
The other thing I noticed is that when I browse to the url https://myserver:3000/myUser/myProject?go-get=1
it returns the entire HTML code in the body tag as opposed to it being the actual response:
<html class=""><head></head><body data-gr-c-s-loaded="true"><pre style="word-wrap: break-word; white-space: pre-wrap;"><!doctype html>
<html>
<head>
<meta name="go-import" content="myserver/myUser/myProject git https://myserver:3000/myUser/myProject.git">
<meta name="go-source" content="myserver/myUser/myProject _ https://myserver:3000/myUser/myProject/src/master{/dir} https://myserver:3000/myUser/myProject/src/master{/dir}/{file}#L{line}">
</head>
<body>
go get myserver/myUser/myProject
</body>
</html>
</pre></body></html>
Metadata
Metadata
Assignees
Labels
status: needs feedbackTell me more about itTell me more about it💊 bugSomething isn't workingSomething isn't working