Skip to content

docs(install): add mm --version verify + --refresh hint for PyPI cache lag#393

Merged
memtomem merged 1 commit intomainfrom
docs/install-refresh-cache-lag
Apr 22, 2026
Merged

docs(install): add mm --version verify + --refresh hint for PyPI cache lag#393
memtomem merged 1 commit intomainfrom
docs/install-refresh-cache-lag

Conversation

@memtomem
Copy link
Copy Markdown
Owner

Summary

  • Adds mm --version as a verify step inside all three first-touch install blocks (repo README.md, PyPI packages/memtomem/README.md, docs/guides/getting-started.md).
  • Adds a short blockquote callout pointing to the releases page and showing both remediations (uv tool install memtomem --refresh and uv cache clean memtomem).
  • No code changes. 3 files, 9 lines added.

Closes #390.

Why

A first-time user running uv tool install memtomem right after a new release can get a stale version because uv caches PyPI index metadata per package. This was observed after v0.1.22 / v0.1.23 and is documented internally as a recurring pattern. Before this PR, --refresh appeared in 0 places across the public docs surface (repo README + PyPI README + docs/), and no doc had a verify step the user could run to notice the problem.

On a fresh test run in this session (cache cleaned beforehand), uv tool install memtomem correctly fetched v0.1.24 — so the stale-version path didn't reproduce locally this time, but the issue is time-windowed and hits whoever installs during the stale window.

Test plan

  • mm --version is a real subcommand that prints the installed version. Verified in a fresh tool env: memtomem 0.1.24.
  • uv tool install memtomem --refresh is a documented uv flag (uv tool install --help).
  • uv cache clean memtomem is a documented uv command (uv cache clean --help — accepts a package arg).
  • Links to https://github.com/memtomem/memtomem/releases resolve.
  • No lint/test failures expected — docs-only change, no code paths touched.
  • Reviewer: render the three pages and sanity-check the blockquote placement.

Scope

Out of scope (separate issues):

🤖 Generated with Claude Code

…cache lag

First-time users can install a stale version because `uv` caches PyPI
index metadata per package, so `uv tool install memtomem` can resolve to
a cached older entry for a short window right after a new release.
Neither the verify step (`mm --version`) nor the remediation
(`--refresh` / `uv cache clean memtomem`) was mentioned anywhere in the
public docs.

Add a verify line inside each of the three first-touch install blocks
(repo README, PyPI README, getting-started guide) and a short blockquote
callout that links to the releases page and shows both remediations.

Closes #390.

Co-Authored-By: Claude <[email protected]>
@memtomem memtomem merged commit ab7c333 into main Apr 22, 2026
7 checks passed
@memtomem memtomem deleted the docs/install-refresh-cache-lag branch April 22, 2026 23:39
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs/install: document --refresh for PyPI cache lag affecting first-time installs

2 participants