dionysius / vaultwarden-deb

clean(er) debian packaging for vaultwarden
MIT License
30 stars 2 forks source link

No version information #7

Closed Peronia closed 1 year ago

Peronia commented 1 year ago

Hi,

I don't know if this issue is linked to your repo or the original vaultwarden. But neither at the cmd or the admin page I can see the version I installed.

cmd:

root@host:~# vaultwarden -v
vaultwarden (Version info from Git not present)

web: grafik

What is going wrong?

dionysius commented 1 year ago

Hi, I see the same, didn't notice. So this should be a packaging issue.

As far as I'm aware debian packaging (or git-buildpackage) strips off all .git data when unpacking the source before compiling. I'll have a look into this.

dionysius commented 1 year ago

Seems like I need to set VW_VERSION at compile time:

If that's the case should be an easy fix...

dionysius commented 1 year ago

Yes, this did the trick (at least for vaultwarden -v - I'm pretty sure this is also the source for other places). https://github.com/dionysius/vaultwarden-deb/tree/debian/1.28.1-5 is the next release with the fix. Once github actions is finished, the release and its items should appear automatically