Skip to content

Fix incorrect lockfile generation when packageCacheDir is passed without trailing slash#5763

Merged
ryanking13 merged 4 commits into
pyodide:mainfrom
ryanking13:force-trailing-slash-package-cache-dir
Jul 15, 2025
Merged

Fix incorrect lockfile generation when packageCacheDir is passed without trailing slash#5763
ryanking13 merged 4 commits into
pyodide:mainfrom
ryanking13:force-trailing-slash-package-cache-dir

Conversation

@ryanking13

@ryanking13 ryanking13 commented Jul 13, 2025

Copy link
Copy Markdown
Member

Description

Fixes pyodide/micropip#241 (comment). I also added some testcase regarding packageCacheDir. I don't think it needs a change log as it is related to the new behavior in micropip 0.10.1 which isn't included in 0.28.0

Checklist

  • Add / update tests

Comment thread src/js/pyodide.ts Outdated
ryanking13 and others added 2 commits July 14, 2025 18:03
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>

@hoodmane hoodmane left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

We also have the problem that the package cache doesn't work with absolute file paths but that can be dealt with separately.

@ryanking13 ryanking13 merged commit 750ed2c into pyodide:main Jul 15, 2025
37 of 40 checks passed
@ryanking13 ryanking13 deleted the force-trailing-slash-package-cache-dir branch July 15, 2025 13:52
hoodmane added a commit to hoodmane/pyodide that referenced this pull request Jul 31, 2025
…out trailing slash (pyodide#5763)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
hoodmane added a commit to hoodmane/pyodide that referenced this pull request Jul 31, 2025
…out trailing slash (pyodide#5763)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
hoodmane added a commit to hoodmane/pyodide that referenced this pull request Aug 4, 2025
…out trailing slash (pyodide#5763)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
hoodmane added a commit to hoodmane/pyodide that referenced this pull request Aug 4, 2025
…out trailing slash (pyodide#5763)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants