-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Can't compile gitea #32036
Comments
You're on 22.04 LTS and not 24.04 LTS? It looks like Jammy by default has much older tools than what you specify so I am going to assume that was just a typo. I got a fresh ubuntu:24.04 container open and the following was all it took to build gitea from that baseline. apt install npm nodejs golang
git -C /tmp clone -b v1.22.2 --single-branch --depth=1 https://github.com/go-gitea/gitea.git
cd /tmp/gitea
export TAGS="bindata sqlite sqlite_unlock_notify"
make frontend
make backend What TAGS are you setting? |
I install all the tools manually (https://github.com/nvm-sh/nvm and go website). And not with apt. Everytime I execute It works for me with latest go 1,21 version But I get problems with go 1.22.x
make frontend is working. Which go version are you using? The question is:
I try this on an Ubuntu 24.04.x VM. |
With an Ubuntu 24.04 VM and installed tools with apt (go 1.22.2) it works. For compiling go 1.22 or higher should be used But in Ubuntu 22.04.x it works for me only with 1.21.x and not with 1.22.x. And with Ubuntu 22.04.x and go 1.22.x I get this
errors. |
Maybe some packages which import So I guess you could try to compile with Go 1.23? Another guess: not sure whether your local Golang is correctly installed. |
On Ubuntu 22.04. it works with go 1.21.x
|
I compile gitea every time cause I need the frontend for my nginx setup. |
are you sure you are trying to compile the 1.22 branch? co-incidently this means that gitea version and golang versions align https://github.com/go-gitea/gitea/blame/main/go.mod gitea-1.24 will need golang-1.23 #31855 |
Your local Golang toolchain seems to be corrupted. |
yep. As I write in my initial post. I'm on this commit. |
uf ... looks like layer-8 problem. I checked my go update script to newer version. I made some changes days ago and ... This is really embarrassing. ;) |
@somera no worries:) happens to everyone. glad it was able to be solved. |
Description
I try to compile gitea 1.22.2 (5e36e9f - (HEAD, tag: v1.22.2) Add changelog for 1.22.2 (#31935) (vor 8 Tagen) ) from source. https://docs.gitea.com/installation/install-from-source
I get this
error.
My tools:
Gitea Version
1.22.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.46.0
Operating System
Ubuntu 22.04.5 LTS (GNU/Linux 6.8.0-40-generic x86_64)
How are you running Gitea?
Just try to compile
Database
None
The text was updated successfully, but these errors were encountered: