From b04172dd0eac3255830ee93b9d4b68740d11a3a2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 1 Dec 2026 21:02:28 +0900 Subject: internal/rosa/package: pkgsite A development tool, not immediately useful for Rosa OS itself, but mostly serves as a test case for net. Signed-off-by: Ophestra --- internal/rosa/package/pkgsite.az | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 internal/rosa/package/pkgsite.az diff --git a/internal/rosa/package/pkgsite.az b/internal/rosa/package/pkgsite.az new file mode 100644 index 00000000..a1e4a64a --- /dev/null +++ b/internal/rosa/package/pkgsite.az @@ -0,0 +1,34 @@ +package pkgsite { + description = "a documentation server"; + website = "https://pkg.go.dev/golang.org/x/pkgsite"; + anitya = 393659; + + version# = "0.7.0"; + source = remoteGit { + url = "https://go.googlesource.com/pkgsite"; + tag = "v"+version; + checksum = "-ZJmXO-hvym8SiM4FlquQsqBEXD6L3tgxNcAGm6-HwZYKywoGQhRH0eTQUVGtLCl"; + }; + + net = "GOMODCACHE=/tmp/cache go mod vendor && cp -r vendor/. /work"; + checksumN = "FwsRwWvV4-30FiYsrbyzhZff6NlqriI6wAGlWeJkubzcNsIdG05sKd3QS_AbZD_L"; + + enter = true; + writable = true; + chmod = true; + + env = [ "GOCACHE=/tmp/cache" ]; + exec = generic { + chdir = false; + build = "ln -sf ../net vendor && "+ + "go build -mod=vendor "+ + "-o /work"+prefix+"/bin/ "+ + "./cmd/pkgsite\n"; + check = "go test ./...\n"; + }; + + tools = [ + go, + bash, + ]; +} -- cgit v1.3.1