Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / glow
Commits:
5926bb8e by Tiago de Paula at 2026-08-13T10:37:28+02:00
Keep debug information
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -30,8 +30,16 @@ build() {
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
- export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external
-mod=readonly -modcacherw"
- go build -v -ldflags "-X main.Version=${pkgver}" -o build .
+ export GOPATH="${srcdir}"
+ export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
+ local ldflags=(
+ -compressdwarf=false
+ -linkmode=external
+ -X main.Version="${pkgver}"
+ -X main.CommitSHA="$(git rev-parse --short=7 HEAD)"
+ -X main.CommitDate="$(git show -s --format=%cs HEAD)"
+ )
+ go build -v -ldflags "${ldflags[*]}" -o build .
build/glow completion bash > completion.bash
build/glow completion fish > completion.fish
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/glow/-/commit/5926bb8eb2ac609ed474f3899697d4a17f572273
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/glow/-/commit/5926bb8eb2ac609ed474f3899697d4a17f572273
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help