GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Cache Conan 2 recipe and package archives by pinguinfuss · Pull Request #431 · git-pkgs/proxy

Conversation

@pinguinfuss

@pinguinfuss pinguinfuss commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Conan 2 fetches recipe and package files from /v2/conans/{ref}/revisions/{rrev}/files/{file} and .../packages/{id}/revisions/{prev}/files/{file}. The handler only cached /v1/files and /v2/files, which no client uses. So conan install never stored an archive: no offline copies, and scanning, max_size and retention never saw them.

This adds the real routes and drops the old ones. v1 hands out signed URLs on the upstream host, so those downloads never came through the proxy anyway. Manifests and conaninfo.txt stay in the metadata cache. The xz and zstd archives Conan 2.25 can upload (.txz, .tzst) are cached too.

Archives are now stored as pkg:conan/[email protected], with the revisions and any user/channel in the filename, so a denylist entry like pkg:conan/[email protected] actually blocks them. Before, every revision was its own version of a package called zlib/1.3.1@_/_.

With cache_metadata on, archives cached before this change are fetched again on first use. Their old _metadata/conan/ entries are no longer read and can be deleted.

Tests cover the real paths, caching, separate user/channel files and the denylist.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
pinguinfuss added 3 commits October 11, 2026 08:47
@pinguinfuss
Conan 2 downloads recipe and package files from /v2/conans/.../revisi…
5fc7db7
…ons/{rrev}/files/{file} and .../packages/{id}/revisions/{prev}/files/{file}, but the handler only cached the invalid /v1/files and /v2/files paths, so archives were never stored. This adds the real routes and drops the old ones; manifests and conaninfo.txt stay in the metadata cache.
@pinguinfuss
Conan 2.25 can also compress archives with xz or zstd (conan_package.…
512cdbf
…txz, conan_package.tzst and so on), so cache those too.
@pinguinfuss
Store Conan archives under plain name and version, like pkg:conan/zli…
f551a2e
…[email protected], with the revisions and any user/channel in the filename. The old name/version@user/channel with one version per revision never matched a denylist entry or what scanners look up.
andrew
andrew approved these changes Oct 11, 2026
View reviewed changes
@andrew
andrew merged commit 5683349 into git-pkgs:main Oct 11, 2026
6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@pinguinfuss
pinguinfuss deleted the fix-conan-v2-routes branch October 11, 2026 15:56
pinguinfuss added a commit to pinguinfuss/proxy that referenced this pull request Oct 12, 2026
@pinguinfuss
Enable storage retention for conan
e1b0c5c
Since git-pkgs#431 the handler stores Conan archives under pkg:conan/{name} with the version as the version and the revisions and any user/channel in the filename. purl keeps conan names as they are, so package rules use the default mapping, and pkg:conan/zlib covers every version, revision and user/channel of the recipe.

The mirror can't fetch conan packages, so there's no mirror test.

Refs git-pkgs#306
@pinguinfuss pinguinfuss mentioned this pull request Oct 12, 2026
Enable storage retention for conan #455
Merged
andrew pushed a commit to pinguinfuss/proxy that referenced this pull request Oct 12, 2026
@pinguinfuss @andrew
Enable storage retention for conan
ff4d5ca
Since git-pkgs#431 the handler stores Conan archives under pkg:conan/{name} with the version as the version and the revisions and any user/channel in the filename. purl keeps conan names as they are, so package rules use the default mapping, and pkg:conan/zlib covers every version, revision and user/channel of the recipe.

The mirror can't fetch conan packages, so there's no mirror test.

Refs git-pkgs#306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@andrew andrew andrew approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@pinguinfuss @andrew
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.