-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Rewrite hooks from console #3796
Comments
I don't remember the binary path changing, is there a special way you are compiling it? |
@LefsFlarey on nixos, we store every package with the scheme |
I see, in that case, would a solution like symlinking it to a standard path regardless of versions solve it? |
As long as the old gogs service exists, the referenced binary should be not garbage-collected. |
I was thinking of more of having a python like structure, where all python version are symlinked to simpler executable names. There are, after all, no incompatibilities between Gogs versions and repositories. Nevertheless, you guys do what you guys gotta do ^_^ |
I've made a PR for this feature: #4813 |
I am packaging Gogs for NixOS.
With every update of the Gogs package, the Gogs binary path changes so that it is necessary to rewrite all git hooks.
Can you provide a shell command, for example
gogs admin rewrite-hooks
so that this can be done automatically by NixOS?The text was updated successfully, but these errors were encountered: