Skip to content

Keep the custom-toolset example's version from changing the PyPI path - #74939

Merged
potiuk merged 2 commits into
apache:mainfrom
potiuk:common-ai-docs-rc1-fixes
Oct 17, 2026
Merged

potiuk merged 2 commits into
apache:mainfrom
potiuk:common-ai-docs-rc1-fixes

Conversation

@potiuk

@potiuk potiuk commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #74904. The writing-a-toolset guide says the example's pattern constraints keep a name or version from changing the URL the hook calls, but the version pattern (^[A-Za-z0-9.!+_-]+$) accepted . and .., which step the request onto another PyPI path (pypi/<name>/../json normalizes to /pypi/json). It now has to start with a letter or digit, like the name pattern: ^[A-Za-z0-9][A-Za-z0-9.!+_-]*$. Real versions such as 3.1.0, 1!2.0 and 2.0.0rc1 still match.

It also points the 1.0.0 changelog entry merged in #74937 at this PR instead of #74935, which was closed in favour of #74904 before this fix could land through it, and records #74937 in the excluded block.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

Generated-by: Claude Code (Opus 5) following the guidelines

🤖 Generated with Claude Code

The writing-a-toolset guide says the example's pattern constraints keep
a name or version from changing the URL the hook calls, but the version
pattern accepted "." and "..", which step the request onto another PyPI
path. It now has to start with a letter or digit, like the name pattern.

Generated-by: Claude Opus 5
…he#74935

The entry merged in apache#74937 cited apache#74935, which was closed in favour of apache#74904 before this fix could land through it; the fix ships through apache#74939. apache#74937 itself goes in the excluded block.

Generated-by: Claude Opus 5
@potiuk
potiuk force-pushed the common-ai-docs-rc1-fixes branch from 3dd2dd4 to dd31758 Compare October 17, 2026 22:47
@potiuk
potiuk merged commit 0266cae into apache:main Oct 17, 2026
37 checks passed
@potiuk
potiuk deleted the common-ai-docs-rc1-fixes branch October 17, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants