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
gitea: 1.7.6 -> 1.8.0 #60014
gitea: 1.7.6 -> 1.8.0 #60014
Conversation
@GrahamcOfBorg build gitea nixosTests.gitea |
should this be backported as there are security fixes ? |
@nyanloutre Hard to say since gitea tend to sometimes break things in minor versions... But they also abandon minor versions quite fast... |
I think this breaks with databases other than sqlite right now, but I'm not 100% sure.
The module should probably be changed to not specify |
@ajs124 As far as I know, the path setting is simply ignored for everything but sqlite. Notice also that the tests for gitea in NixOS are run for mysql, postgresql and sqlite (and succeeded with this PR.) This error looks fishy, though: |
gogs and gitea have always had the promise that "it's just a binary that you run and you don't have to care". Both for running and upgrading. Hence they kinda promise that they will migrate the database as well, otherwise the upgrades wouldn't be smooth as they promise. I know that we once did an upgrade of gitea in a backport, and one user got upset because it broke because of locales that we copied to the statedir, so with the upgrades the user had the wrong locales. This was fixed in a098cc9 so we put the symlink to the currently running versions locales in the statedir. So the locales won't ever break again on upgrades. So I think it would be smooth to backport this. |
This was discovered in NixOS#60014
I support a backport as @etu does. It might be worth enabling the dump option by default given how frequently important updates occur. This might save some grief for anyone misguided enough to run gitea without proper backups (what was I thinking?!)... |
That change would not be backported though... :-) |
This was discovered in NixOS#60014 (cherry picked from commit 71450b1)
Motivation for this change
Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.8.0
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)