ci(release): keep a published version immutable
CI / check (push) Successful in 3m26s

The 0.1.7-1 release was built twice: the second run attached a package with a
different sha256 under the same name, so the CDN kept serving bytes from the
first build while the index announced the second, and pacman rejected the
download as an invalid or corrupted package. The release now refuses to replace
a published package whose checksum changed and asks for a pkgrel bump instead,
and it verifies the sha256 of the served file after the upload rather than only
its presence.
This commit is contained in:
BlackAngelTV committed 2026-11-25 20:58:40 +01:00
1 parent af032e3d87
commit 25840c6ce1
3 files changed
+39 -6

No files matched your search

+5 -2
View File
@@ -320,8 +320,11 @@ contrôles sur chaque PR et chaque push sur `main` qui ne modifie pas que
Pour reconstruire la même version du fork (correctif de packaging), incrémentez
`pkgrel` dans `packaging/PKGBUILD` puis lancez le workflow à la main
(*Actions → Release → Run workflow*) : le paquet `0.1.7-2` remplace alors le
`0.1.7-1`. Une nouvelle version du fork demande `version`, `pkgver` et les deux
front-ends, avec `pkgrel=1` ; pour suivre une nouvelle version de kitty, mettre
`0.1.7-1`. Une version déjà publiée n'est jamais réécrite avec un autre build :
le workflow refuse de remplacer un paquet dont l'empreinte a changé et demande
d'incrémenter `pkgrel`, sinon les caches (CDN, pacman) servent un fichier qui ne
correspond plus à la base. Une nouvelle version du fork demande `version`,
`pkgver` et les deux front-ends, avec `pkgrel=1` ; pour suivre une nouvelle version de kitty, mettre
à jour `_kittyver` et `kitty/constants.py`. La publication vers
`repo.laxacube.ch` utilise le
secret `REPO_TOKEN` du dépôt, la release Gitea le secret `RELEASE_TOKEN` ; sans