Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#72321 - [shfmt] version string missing
Attached to Project:
Community Packages
Opened by George Rawlinson (rawlinsong) - Friday, 01 October 2021, 23:52 GMT
Last edited by Maxim Baz (maximbaz) - Saturday, 02 October 2021, 01:21 GMT
Opened by George Rawlinson (rawlinsong) - Friday, 01 October 2021, 23:52 GMT
Last edited by Maxim Baz (maximbaz) - Saturday, 02 October 2021, 01:21 GMT
|
DetailsDescription:
`shfmt -version` currently returns '(devel)' instead of package version. Fix: Adding '-X main.version=$pkgver' to go build's ldflags fixes the issue. This is done upstream in the developer's Dockerfile[0]. Example: go build -ldflags "-linkmode=external -extldflags=$LDFLAGS -X main.version=$pkgver" [0]: https://github.com/mvdan/sh/blob/69d3e4f23d0bdc9502a2aa9b69ec293f3494dcc2/cmd/shfmt/Dockerfile#L6 |
This task depends upon
Closed by Maxim Baz (maximbaz)
Saturday, 02 October 2021, 01:21 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks, fixed in 3.4.0-2
Saturday, 02 October 2021, 01:21 GMT
Reason for closing: Fixed
Additional comments about closing: Thanks, fixed in 3.4.0-2