Skip to content

[python] Change the sudo_if function to avoid issues with Bash - #694

Merged
Samruddhi Khandale (samruddhikhandale) merged 10 commits into
devcontainers:mainfrom
alexander-smolyakov:python_fix-wrapper-function
Sep 27, 2023
Merged

[python] Change the sudo_if function to avoid issues with Bash#694
Samruddhi Khandale (samruddhikhandale) merged 10 commits into
devcontainers:mainfrom
alexander-smolyakov:python_fix-wrapper-function

Conversation

@alexander-smolyakov

@alexander-smolyakov Alexander Smolyakov (alexander-smolyakov) commented Sep 20, 2023

Copy link
Copy Markdown
Contributor

Feature name:

  • ghcr.io/devcontainers/features/python

Description:

This PR aims to resolve the No such file or directory error when commands are executed via the sudo_if function.

Changelog:

  • Removed double quotes to avoid issues with tokenization;
  • Added ability to install the jupyterlab package under root user;
  • Fixed jupyterlab tests;
  • Added new tests to cover the "install under root user" scenario;

Attached related issue:

Checklist:

  • Checked that applied changes work as expected

This reverts commit 9e62a37.
Comment thread src/python/install.sh
Comment thread src/python/install.sh
Comment thread src/python/install.sh

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.

Left some minor comments, besides that LGTM

Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh Outdated

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.

Left some minor comments, besides that LGTM

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.

Thank you! 🚢

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