goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.53k stars 470 forks source link

package scan format #776

Closed AGENT3128 closed 10 months ago

AGENT3128 commented 1 year ago

Hello, Why does package_rpm.go use the format "%{VERSION}\n" in line 26? This is not the full version of the package, is it possible to fix this format '[%{VERSION}-%{RELEASE}.%{ARCH}\n]''?

aelsabbahy commented 1 year ago

I assume this is regarding RPM?

If so, this issue is currently tracking it: https://github.com/aelsabbahy/goss/issues/334

aelsabbahy commented 10 months ago

The version has been changed as of v4. There is still no rpm version comparison algorithm in goss, yet. But the needed information is there:

%|EPOCH?{%{EPOCH}:}:{}|%{VERSION}-%{RELEASE}

Feel free to open a new issue if you have any issues with the latest version of goss.