Skip to content
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

Fix #7525 by setting yarn.lock permissions #10063

Merged
merged 1 commit into from Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions jupyterlab/commands.py
Expand Up @@ -13,6 +13,7 @@
import os.path as osp
import re
import shutil
import stat
import site
import subprocess
import sys
Expand Down Expand Up @@ -1306,6 +1307,7 @@ def _populate_staging(self, name=None, version=None, static_url=None,
f.write(template)
elif not osp.exists(lock_path):
shutil.copy(lock_template, lock_path)
os.chmod(lock_path, stat.S_IWRITE | stat.S_IREAD)

def _get_package_template(self, silent=False):
"""Get the template the for staging package.json file.
Expand Down