Skip to content

base-setup: simplify caching and support pnpm#266

Merged
jtpio merged 7 commits intojupyterlab:mainfrom
jtpio:pnpm
Feb 6, 2026
Merged

base-setup: simplify caching and support pnpm#266
jtpio merged 7 commits intojupyterlab:mainfrom
jtpio:pnpm

Conversation

@jtpio
Copy link
Member

@jtpio jtpio commented Dec 22, 2025

Changes

@jtpio jtpio added the enhancement New feature or request label Dec 22, 2025
@jtpio jtpio marked this pull request as ready for review December 22, 2025 08:09
Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

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

Thanks @jtpio

LGTM

Comment on lines +68 to +74
if [ -f pnpm-lock.yaml ]; then
echo "manager=pnpm" >> $GITHUB_OUTPUT
elif [ -f yarn.lock ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
elif [ -f package-lock.json ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
fi
Copy link
Member

Choose a reason for hiding this comment

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

  • Do we know of any repositories where the lock file is in a subdirectory?
  • What happens if there is no lock file, e.g. a repo does not include frontnend code? I think jupyter-ai repo is one example that falls in that category. Should we skip installing node in that case?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do we know of any repositories where the lock file is in a subdirectory?

Yes there are some, for example https://github.com/voila-dashboards/voici/blob/main/python/voici-core/yarn.lock

What happens if there is no lock file, e.g. a repo does not include frontnend code? I think jupyter-ai repo is one example that falls in that category. Should we skip installing node in that case?

For Python monorepos probably it would make sense to not install Node. But not sure how disruptive this could be for those assuming Node was always available.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, just pushed a change to use the built-in hashFiles to more easily detect any lock files that may be located in subfolders.

Maybe we can look into skipping the setup-node separately.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe we can look into skipping the setup-node separately.

Opened #271

@jtpio jtpio requested a review from krassowski February 5, 2026 07:34
Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

🚀

@jtpio jtpio merged commit c0c2ec8 into jupyterlab:main Feb 6, 2026
26 checks passed
@jtpio jtpio deleted the pnpm branch February 6, 2026 06:42
jtpio added a commit that referenced this pull request Feb 6, 2026
@jtpio jtpio restored the pnpm branch February 6, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants