Skip to content

Fix build for latest yarn/jlpm #419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2023

Conversation

vthemelis
Copy link
Contributor

@vthemelis vthemelis commented May 19, 2023

Move to jlpm to make sure we are in sync with JupyterLab quirks.

Currently, jlpm is on yarn 3. To make the package work with that I had
to:

  • Run jlpm install to change to the new lock file format.

➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.

  • Change the CICD step that ran Jupyter in detached mode as yarn doesn't
    seem to respect the & operator at the end of command targets any
    more and won't run the target in the background.
  • Use PnP loose mode of yarn. This one applies due to transative
    dependencies not complying with recent yarn rules.

This is a duplicate of #418 which I accidentally closed.

@vthemelis vthemelis force-pushed the fix-build-2 branch 7 times, most recently from b55ff04 to 2d9bdc6 Compare May 20, 2023 15:10
@vthemelis vthemelis changed the title Fix CICD Fix build for latest yarn/jlpm May 20, 2023
@vthemelis vthemelis marked this pull request as ready for review May 20, 2023 15:12
Move to jlpm to make sure we are in sync with JupyterLab quirks.

Currently, jlpm is on yarn 3. To make the package work with that I had
to:
* Run `jlpm install` to change to the new lock file format.
>  ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
* Change the CICD step that ran Jupyter in detached mode as yarn doesn't
  seem to respect the `&` operator at the end of command targets any
  more and won't run the target in the background.
* Use PnP loose mode of yarn. This one applies due to transative
  dependencies not complying with recent yarn rules.

NB that I pinned the version of JupyterLab to below 4.

Signed-off-by: Vasilis Themelis <[email protected]>
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks a lot

@martinRenou martinRenou merged commit 783e342 into jupyter-widgets:main May 22, 2023
@vthemelis vthemelis deleted the fix-build-2 branch May 22, 2023 07:25
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