sethvargo / ratchet

A tool for securing CI/CD workflows with version pinning.
Apache License 2.0
769 stars 32 forks source link

In `ratchet --version` output, please show real version (e.g. `0.5.0`) instead of `devel` #58

Closed nitrocode closed 10 months ago

nitrocode commented 10 months ago

New issue?

TL;DR

I downloaded the binary from the releases page and see devel in the version output instead of 0.5.0

Expected behavior

✗ ratchet --version
ratchet (0.5.0) (df0adb51bf6adce7a81095187c482de72c2d0e9d, darwin/amd64)

Observed behavior

✗ ratchet --version
ratchet (devel) (df0adb51bf6adce7a81095187c482de72c2d0e9d, darwin/amd64)

Version

0.5.0

On what operating system are you using ratchet?

Mac OS

CI/CD workflow file

No response

Relevant log output

No response

Additional information

No response

sethvargo commented 10 months ago

How did you install ratchet?

nitrocode commented 10 months ago

I downloaded the release from the github releases page.

wget https://github.com/sethvargo/ratchet/releases/download/v0.5.0/ratchet_0.5.0_darwin_$(uname -m).tar.gz
tar xvfz ratchet_0.5.0_darwin_$(uname -m).tar.gz
sudo mv ratchet /usr/local/bin
which ratchet
ratchet --version
sethvargo commented 10 months ago

Well, that was quite a rollercoaster of discovery: https://github.com/golang/go/issues/64246

nitrocode commented 10 months ago

Thanks for hunting that down and fixing it