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 — Restore dist-tag caching and offline fallback for authenticated registry origins by voidzero-bot[bot] · Pull Request #3449 · voidzero-dev/vite-plus

Conversation

@voidzero-bot

@voidzero-bot voidzero-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

With any credential for a registry origin in ~/.npmrc, resolve_dist_tag was returning fetch_dist_tag_version(...) directly, bypassing the dist-tag cache entirely. That made every package-manager shim invocation hit the registry, and a network failure became a hard error instead of falling back to the cached version that docs/guide/env.md promises remains available.

This change scopes the cache key by a stable, non-reversible SHA256 hash of the origin's .npmrc authentication entries. Responses obtained with one credential are still isolated from another user of the same URL (preserving the intent of #2624), but the cache is now read, written, and used as an offline fallback even when credentials are present. If no credential-scoped cache exists yet, the resolver also falls back to the unauthenticated cache so a pre-existing cached value is still usable offline.

The existing authenticated-cache tests are updated to assert per-credential isolation plus same-credential reuse, and two regression tests cover the new fallback behavior.

Closes #3445

Sorry, something went wrong.

Uh oh!

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

All reactions
@voidzero-bot
fix(pm): scope dist-tag cache by credential identity and preserve off…
669432c
…line fallback
@voidzero-bot voidzero-bot Bot added the fix verified label Nov 13, 2026
@voidzero-bot voidzero-bot Bot mentioned this pull request Nov 13, 2026
Package-manager shims hit the registry on every invocation when the registry origin has a credential, and lose the documented cache fallback #3445
Closed
@github-actions

github-actions Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

CLI artifact sizes (669432c)

Final release artifacts built by the canonical build-upstream and build-windows-cli actions.
The dist rows use the Linux build. The core total excludes .node files to match the release artifact.

Artifact Format Base PR Change
packages/cli/dist Directory total 2.34 MiB 2.34 MiB 0 B (0.00%)
packages/core/dist Directory total 4.11 MiB 4.11 MiB 0 B (0.00%)
Combined package dist Directory total 6.45 MiB 6.45 MiB 0 B (0.00%)
vp (Linux x64) Binary 8.36 MiB 8.37 MiB +8.02 KiB (+0.09%)
vp (Linux x64) gzip -9 3.82 MiB 3.82 MiB +3.49 KiB (+0.09%)
NAPI (Linux x64) Binary 36.79 MiB 36.80 MiB +12.03 KiB (+0.03%)
NAPI (Linux x64) gzip -9 14.70 MiB 14.71 MiB +5.17 KiB (+0.03%)
vp (macOS ARM64) Binary 5.46 MiB 5.46 MiB +48 B (+0.00%)
vp (macOS ARM64) gzip -9 3.25 MiB 3.25 MiB +3.99 KiB (+0.12%)
NAPI (macOS ARM64) Binary 43.43 MiB 43.45 MiB +16.14 KiB (+0.04%)
NAPI (macOS ARM64) gzip -9 18.87 MiB 18.88 MiB +14.07 KiB (+0.07%)
vp (Windows x64) Binary 6.19 MiB 6.20 MiB +8.00 KiB (+0.13%)
vp (Windows x64) gzip -9 2.87 MiB 2.87 MiB +5.06 KiB (+0.17%)
NAPI (Windows x64) Binary 32.82 MiB 32.83 MiB +5.50 KiB (+0.02%)
NAPI (Windows x64) gzip -9 13.46 MiB 13.46 MiB +3.16 KiB (+0.02%)
Trampoline (Windows x64) Binary 13.50 KiB 13.50 KiB 0 B (0.00%)
Trampoline (Windows x64) gzip -9 7.09 KiB 7.09 KiB 0 B (0.00%)
Installer (Windows x64) Binary 4.68 MiB 4.69 MiB +8.00 KiB (+0.17%)
Installer (Windows x64) gzip -9 2.25 MiB 2.25 MiB +4.22 KiB (+0.18%)
All reactions

Sorry, something went wrong.

Uh oh!

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 13, 2026

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
669432c 2026-11-13T15:30:58.783Z View logs ↗
All reactions

Sorry, something went wrong.

Uh oh!

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

@liangmiQwQ

liangmiQwQ commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

I found some problems in this implementation, I'll take over.

All reactions

Sorry, something went wrong.

Uh oh!

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

@liangmiQwQ liangmiQwQ closed this Nov 15, 2026
@liangmiQwQ liangmiQwQ mentioned this pull request Nov 15, 2026
ci(triage): use Conventional Commits for bot PR titles #3459
Merged
fengmk2 pushed a commit that referenced this pull request Nov 16, 2026
@liangmiQwQ
ci(triage): use Conventional Commits for bot PR titles (#3459)
048e2ee
The triage bot's PR titles don't follow Conventional Commits, for
example #3442 and #3449. Without a `pr-skill`, triagebot-action's
built-in prompt explicitly asks for titles without a `fix:` prefix.

This PR follows [Oxc's triage
setup](oxc-project/oxc#29350) by passing a small
`pr-writer` skill to the action. It requests a scoped Conventional
Commit title and a brief explanation of the fix, with `Closes #<issue>`
and an AI-assistance note. Detailed validation stays in the triage
report.

The skill applies both when the bot opens a PR immediately after triage
and when it opens one after the reporter confirms the fix.

🤖 Generated with [Claude Code](https://claude.com/claude-code) and
[Codex](https://openai.com/codex/)
@voidzero-bot
voidzero-bot Bot deleted the triagebot/fix-3445 branch November 16, 2026 11:33
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

fix verified

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Package-manager shims hit the registry on every invocation when the registry origin has a credential, and lose the documented cache fallback

Uh oh!

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

1 participant

@liangmiQwQ
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 01402775 — 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.