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 — List mirror versions from the configured upstream by simonchrz · Pull Request #548 · git-pkgs/proxy

Conversation

@simonchrz

@simonchrz simonchrz commented Oct 22, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

proxy mirror, mirror API jobs and schedules listed the versions of an unversioned PURL from the public registry, whatever upstream.* says. They now list them from the configured upstream, through the proxy's upstream client, so upstream.auth and the private address rules apply. npm packages in npm_routes are listed from their route.

  • Listed from the configured upstream: npm, gem, golang, hex (hex_api), pub, pypi, maven, nuget, composer, cran and brew.
  • cargo, conda and julia: the proxy's upstream doesn't serve the API the registries client lists from. Versions come from the public registry while the upstream is the default one; with another upstream the error asks for a version.
  • Composer packages in composer_routes, and helm, swift, apk and the rest: the error asks for a version instead of the registries error. Fetching those is proxy mirror doesn't support julia, cran, homebrew, swift, apk, debian or rpm #414.

With PROXY_UPSTREAM_NPM=http://127.0.0.1:1, proxy mirror -dry-run pkg:npm/left-pad listed 15 versions on main and now fails on the unreachable upstream.

The second commit bumps registries to main, which streams npm packuments (git-pkgs/registries#109). proxy mirror -dry-run pkg:npm/typescript failed with unexpected end of JSON input and now lists every version, so this closes #524. go.mod points at a pseudo-version of registries main until the next release; I'll switch it to the tag then.

Closes #524.

Sorry, something went wrong.

Uh oh!

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

All reactions
@simonchrz
List mirror versions from the configured upstream
f44ce1e
proxy mirror and mirror API jobs listed the versions of unversioned
PURLs from the public registries, ignoring upstream.*. They now list
them from the configured upstream through the proxy's upstream client,
and npm packages from their npm_routes entry. Where the upstream has no
listing API, or the ecosystem has no listing at all, the error asks
for a version.

Refs git-pkgs#524
@simonchrz simonchrz mentioned this pull request Oct 22, 2026
Mirror packages from the configured upstreams #550
Merged
@andrew

andrew commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

This is waiting on git-pkgs/registries#99. The Maven client asks search.maven.org before the configured base URL, so with a custom upstream.maven unversioned PURLs still send coordinates to Central's search and can list Central's versions instead of the upstream's. Once #99 is fixed and released, this needs the registries bump.

All reactions

Sorry, something went wrong.

Uh oh!

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

simonchrz and others added 4 commits October 24, 2026 19:03
@simonchrz
Bump registries for streamed npm packuments
c3d0448
registries main streams npm packuments (git-pkgs/registries#109), so
listing the versions of packages whose packument is over 10 MiB, such as
typescript, no longer fails with "unexpected end of JSON input". It also
reads Maven versions from maven-metadata.xml (git-pkgs#114).

go.mod points at a pseudo-version of registries main until those are
released.
@simonchrz
Merge remote-tracking branch 'origin/main' into fix/mirror-upstream-v…
cc4a9c4
…ersions

# Conflicts:
#	go.mod
#	go.sum
@andrew
Bump registries to v0.11.1
42584c3
@andrew
Merge main into fix/mirror-upstream-versions
0fc8ae7
# Conflicts:
#	go.mod
#	go.sum
@andrew
andrew merged commit 3146e80 into git-pkgs:main Oct 25, 2026
7 checks passed

Uh oh!

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

@simonchrz simonchrz mentioned this pull request Oct 25, 2026
Mirror PyPI packages #591
Merged
@simonchrz simonchrz added the breaking Changes behaviour users rely on; needs a minor release label Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

breaking Changes behaviour users rely on; needs a minor release

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

proxy mirror lists versions from the public registry instead of the configured upstream

Uh oh!

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

2 participants

@simonchrz @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.