From e7f05f66d2e927854d14c35c691d74b38d2bba06 Mon Sep 17 00:00:00 2001 From: officer Date: Wed, 19 Aug 2026 08:48:31 +0000 Subject: [PATCH] declare tea as a release binary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dependency this plugin actually wants, and the reason the platform grew release dependencies: tea is not in any distribution, and Debian has an unrelated package of that name — a graphical text editor. `packages` is empty on purpose, because every entry in it would install the wrong program. `identify` runs `tea --version` and looks for `go-sdk`, which Gitea's CLI prints and the text editor does not. Bun.which cannot tell them apart, and a namesake reported as satisfied is worse than one reported missing. Pinned at 0.15.1 rather than latest: an install that silently fetches whatever is current is not reproducible. --- manifest.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/manifest.ts b/manifest.ts index 6649c87..fba17ed 100644 --- a/manifest.ts +++ b/manifest.ts @@ -48,6 +48,24 @@ export const manifest: PluginManifest = { unauthenticatedPaths: ['/_web/*'], + // `tea` is not in any distribution, and Debian has an UNRELATED package of that name — a graphical + // text editor. So this is a release binary with an identity check: `Bun.which('tea')` cannot tell the + // two apart, and reporting the wrong one as satisfied is worse than reporting it missing. + osDependencies: [ + { + binary: 'tea', + reason: 'Pull requests, issues and comments. Plain git handles clones and pushes without it.', + // Empty on purpose. Every entry here would install the text editor. + packages: {}, + release: { + url: 'https://dl.gitea.com/tea/0.15.1/tea-0.15.1-{os}-{arch}', + // Gitea's tea prints `Version: 0.9.2 golang: … go-sdk: …`. The text editor prints nothing of + // the sort, and `go-sdk` is the least likely of those to appear in an unrelated tool. + identify: { args: ['--version'], contains: 'go-sdk' }, + }, + }, + ], + permissions: [ { key: 'gitea',