Hyprland
Hyprland copied to clipboard
adding version file for flake builds
i would expect Hyprland --version would display the version (and last commit) but it shows me no error.. just the help
hyprctl version??
~~> hyprctl version Hyprland, built from branch at commit dirty (). flags: (if any) debug
i use the nixos flake so it should report 0.9.1?
it reports nothing because you're building with meson and @fufexan has not yet added versioning for meson. It only works through CMake. Furthermore I think it's impossible to tell through the flake. Fufexan should know more.
thanks for answering, i guessed it has todo with the manual build situation
Versioning does work in meson as well since #321.
The problem here is that the flake has no way of determining that git info, since it strips out .git.
We should probably switch to using a version file which the flake and everything else can then check.
if we have a version file we could update the version in the flake automaticly https://github.com/hyprwm/Hyprland/blob/3947fe9e9f8fb2912b969a20fbbec3f2ab62cef0/flake.nix#L36
Speaking of that string, wasn't it supposed to be automatically updated?
It was, but the GH runner doesn't get the git info properly and instead replaces the version with "". So I disabled it and then forgot about it.
I'll try to make a release action with the actor set as Vaxry, that'll solve our problems.
@fufexan any updates here or should I close this
You can close it for now.