Package Details: witr 0.3.1-1

Git Clone URL: https://aur.archlinux.org/witr.git (read-only, click to copy)
Package Base: witr
Description: A tool to determine why a process is running.
Upstream URL: https://github.com/pranshuparmar/witr
Licenses: Apache-2.0
Conflicts: witr-bin
Provides: witr
Submitter: fzerorubigd
Maintainer: fzerorubigd
Last Packager: fzerorubigd
Votes: 5
Popularity: 0.42
First Submitted: 2025-12-28 14:16 (UTC)
Last Updated: 2026-03-18 15:40 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

marmis commented on 2026-01-21 02:48 (UTC) (edited on 2026-01-21 02:52 (UTC) by marmis)

Thanks @fzerorubigd and sorry for pestering you again, but I noticed the commit information was missing on the binary. Could you do something like main.go shows?

-X main.commit=$(git rev-parse --short HEAD) -X "main.buildDate=$(date +%Y-%m-%d)"

Or even better for reproducible builds, you could do something like Arch does for chezmoi:

-X main.commit="$(git rev-parse --short HEAD)" -X main.buildDate="$(date -u +%Y-%m-%d --date=@$SOURCE_DATE_EPOCH)"

marmis commented on 2026-01-20 00:29 (UTC) (edited on 2026-01-20 00:30 (UTC) by marmis)

Hi @fzerorubigd, could you please remove -s -w from -ldflags? Makepkg already does a good job of stripping binaries for those that want it (same size for me), while leaving these options there removes the ability to keep debug symbols. Thanks for maintaining it!

TrialnError commented on 2025-12-28 19:58 (UTC) (edited on 2025-12-28 19:58 (UTC) by TrialnError)

Hi
Some remarks on the PKGBUILD.
1) Checksums can be generated for git sources using the tag fragment since pacman 7.x. SKIP is therefore not necessary.
2) Any compilation should be done in an explicit build() function. package() shouldn't be used for that. Please take a look at the Go package guidelines