Add alpine virtual repositories #164
Reference in New Issue
Block a user
Delete Branch "benvin/virtual-alpine"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Virtual repos cover rpm, deb, npm and others but not alpine, so a local alpine repo and github_alpine remotes cannot be served as one apk repository.
<dir>/APKINDEX.tar.gzper directory; member order wins duplicate (P, V, A); a member 404 is skipped<dir>/<P>-<V>.apkdownloads to the member whose index listed the packageRequires unkin/artifactapi#163.
nit: internal/virtual/alpine_merger.go:46 — Owners is keyed on
P-V.apkwhile dedupe keys on (P,V,A); two members carrying the same P-V with different A in one dir both get indexed but the download 302s to the first member → key dedupe on P-V per dir, or key Owners on A too.nit: internal/virtual/engine.go:466 — client-chosen junk dirs each cache an empty merge and evict real dirs from the 32-entry LRU (same as deb suites) → only cache a merge when some member returned an index.