rossmacarthur / sheldon

:bowtie: Fast, configurable, shell plugin manager
https://sheldon.cli.rs
Apache License 2.0
1.02k stars 21 forks source link

Embed more version information in binary #108

Closed rossmacarthur closed 3 years ago

rossmacarthur commented 4 years ago

For example if you pass -v with -V to rustc

$ rustc -vV
rustc 1.46.0 (04488afe3 2020-08-24)
binary: rustc
commit-hash: 04488afe34512aa4c33566eb16d8c912a3ae04f9
commit-date: 2020-08-24
host: x86_64-apple-darwin
release: 1.46.0
LLVM version: 10.0

You get extra useful information. It might be nice to have something like this for Sheldon. At the moment there is no easy way to differentiate between Sheldon built locally, vs on GitHub Actions vs Homebrew.

rossmacarthur commented 4 years ago

I tried something like this in 5409c9954d86459ef47292f3a549add7fa87bd77 which failed to build on other platforms for some reason. I think it had something to do with the fact that I was using libgit2 as a build dependency, but not sure. I reverted the commit because it wasn't working properly.

rossmacarthur commented 3 years ago

This was done in f3c748324fce1a098fd00f9b645771e1164d0a53