Repository navigation
crossdock v0.2.0 Alpha
Added
-
RPM repositories —
format: rpmpublishesrpm/<repo>/withPackages/andrepodata/
(primary,filelists,other, and a signedrepomd.xml), following createrepo_c's rules,
for dnf withrepo_gpgcheck=1. Package headers aren't re-signed; sign packages withrpmsign
forgpgcheck=1. -
GooGet repositories —
format: goopublishesgoo/<repo>/indexandindex.gzfor
googet addrepo, keeping each package's pkgspec verbatim. -
crossdock inspectreads.rpmand.goofiles. -
The packaged config,
/var/lib/crossdock/incomingandcrossdock-publish.pathnow cover all
four formats. -
serveandnginx-configcache content-addressedrepodata/<sha256>-*.xml.gzfiles as
immutable and serve.gooasapplication/gzip. -
Incremental publishing —
<output>/cache.jsonremembers each package's digest and parsed
metadata (by path, size and mtime), so unchanged packages aren't reread, rehashed or copied. -
apt
Acquire-By-Hash, keeping the previous generation's indexes reachable through a swap,
andvalid_forforValid-Until, with a new (disabled)crossdock-publish.timerthat
republishes daily. -
no_symlinks— publish without symlinks (in-release links become hardlinks or copies;
current.idrecords the current release). It's used automatically where symlinks can't be
created, and always on Windows. -
crossdock keygencreates an Ed25519 signing key, optionally passphrase-protected, and
signing.passphrase_filereads a passphrase from a file such as a systemd credential. -
signing.key_idcan pick one key from akey_filethat holds several. -
CI runs the real client for every supported target against a signed repo, and checks that a
tampered index is rejected: apt on Debian stable (sqv) and Ubuntu (gpgv), dnf on Fedora 44
and 45 and AlmaLinux 10, and pacman on Arch. -
Dependabot auto-merges its grouped minor and patch updates to Go modules and Actions once CI
passes. Major and security updates (which skip the cooldown) wait for review. -
crossdock systemd-configgenerates the drop-ins and tmpfiles entry for a config whose paths
aren't under/var/lib/crossdock:ReadWritePaths, the watched directories and
RequiresMountsFor. -
allow_empty: trueon a repo lets it be published empty after it has had packages.
Changed
- Packages are hardlinked into the store when the source shares a file system with
output,
so they no longer take twice the space. Publish warns if it has to copy. Replace sources by
rename, not by writing into them. A truncated store object is now replaced, not reused. - A publish that's interrupted resumes. Progress is saved every minute and on failure, and
crossdock-publish.serviceno longer has a 30-minute start timeout. Releases left by a killed
publish no longer count towardskeep_releases. - A repo that has packages won't be published empty, as an unmounted disk would make it look,
unless it setsallow_empty. Symlinked packages, once skipped silently, now fail the publish. sign_packagesis off in the packaged config and example: it's unsuitable for large packages,
and a signed database covers package contents when clients require its signature. pacman clients
need
SigLevel = Required DatabaseRequired PackageOptional.crossdock-publish.servicecan write all of/var/lib/crossdock, not justrepo/, because
hardlinks can't cross the separate mountsReadWritePathsmakes. Both services now require
that path's mount.- No host tools needed. Signing,
keygen, and xz and zstd decoding are native Go
(ProtonMail/go-crypto, ulikunitz/xz, klauspost/compress). The packages no longer depend on
gnupg, xz or zstd.gpgis only used, and only suggested, forsigning.gnupg_home
(agent and smartcard keys). - The config is YAML:
crossdock.yaml, and/etc/crossdock/crossdock.yamlin the
packages. Unknown and duplicate keys are errors with line and column. JSON configs still load. - Keys are v4 Ed25519 with SHA-512 signatures, which every supported client accepts. GnuPG
(pacman, EL10's dnf) rejects RFC 9580 v6 keys. - Supported targets are current releases only: Debian 13+, Fedora 44/45, EL10.2+ and Arch.
Building needs Go 1.27.3 (GOTOOLCHAIN=autofetches it). - The store is garbage-collected from per-release manifests rather than hardlink counts.
Fixed
- Windows always publishes without symlinks. With symlink rights, the
currentswap failed
with "Access is denied". - Release paths are checked with
filepath.IsLocal, which also rejects rooted paths and
reserved names on Windows.