public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/caddy] rawhide: Use %go_vendor_license_buildrequires instead of static BRs
@ 2026-06-25 3:43 Maxwell G
0 siblings, 0 replies; only message in thread
From: Maxwell G @ 2026-06-25 3:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/caddy
Branch : rawhide
Commit : eb03c3bdf2a9e32115043f52d84d33245c133a9f
Author : Maxwell G <maxwell@gtmx.me>
Date : 2026-06-22T23:22:23-05:00
Stats : +4/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/caddy/c/eb03c3bdf2a9e32115043f52d84d33245c133a9f?branch=rawhide
Log:
Use %go_vendor_license_buildrequires instead of static BRs
See
https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_installing_go_vendor_tools.
It's preferable to use dynamic BRs instead of statically requiring the
license detector backend's dependencies, since they could change in the
future.
[skip changelog]
---
diff --git a/caddy.spec b/caddy.spec
index 461db00..c9a89eb 100644
--- a/caddy.spec
+++ b/caddy.spec
@@ -27,7 +27,6 @@ Patch1: 0001-Disable-commands-that-can-alter-the-binary.patch
BuildRequires: go-rpm-macros
BuildRequires: go-vendor-tools
-BuildRequires: askalono-cli
BuildRequires: systemd-rpm-macros
%{?systemd_ordering}
@@ -44,6 +43,10 @@ Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS.
%autosetup -p 1 -a 1
+%generate_buildrequires
+%go_vendor_license_buildrequires -c %{S:2}
+
+
%build
export GO_LDFLAGS="-X github.com/caddyserver/caddy/v2.CustomVersion=v%{version}"
%gobuild -o bin/caddy ./cmd/caddy
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-25 3:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25 3:43 [rpms/caddy] rawhide: Use %go_vendor_license_buildrequires instead of static BRs Maxwell G
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox