7 ms·
If you're looking to build and install this from source, here's the incantation: CGO_ENABLED=0 go build -ldflags "-X main.version=dev -X main.commit=$(git rev-
by be_erik 9mo ago
If you're looking to build and install this from source, here's the incantation:
CGO_ENABLED=0 go build -ldflags "-X main.version=dev -X main.commit=$(git rev-parse --short HEAD) -X 'main.buildDate=$(date +%Y-%m-%d)'" -o witr ./cmd/witr
Call me old-fashioned, but if there's an install.sh, I would hope it would prefer the local src over binaries.
Very cool utility! Simple tools like these keep me glued to the terminal. Thank you!
- sestep 9mo agoAlternatively you can use Nix! :P https://github.com/pranshuparmar/witr/pull/5 https://github.com/pranshuparmar/witr/pull/5
- pranshuparmar 9mo agoThanks! Glad you like it Thanks to @sestep, Nix support is already added, so no need to worry about binaries.