mkcert -version returning incorrect version

Description:

I installed mkcert through pacman and when running mkcert -version I get (devel) instead of the actual version. This seems to be a known issue in mkcert and the suggested fix is to provide the version through a build flag.

I was able to build it and get the correct version with this code:

$ git clone https://github.com/FiloSottile/mkcert && cd mkcert
$ go build -ldflags "-X main.Version=v1.4.4" -o /usr/local/bin/
$ mkcert -version
v1.4.4

Additional info:

  • package version(s): 1.4.4-2
  • config and/or log files:
  • link to upstream bug report, if any:

Steps to reproduce:

  1. Install mkcert through pacman
  2. Run mkcert -version and see (devel) being returned
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information