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

Remove symbolic link for pip in devcontainer #208

Merged
merged 1 commit into from
May 13, 2021
Merged

Conversation

sstjean
Copy link
Contributor

@sstjean sstjean commented May 13, 2021

Description

Removed the symbolic link creation for pip in the dev container. The current Ubuntu 20.04 base image already contains this symlink and this code was failing with the error

ln: failed to create symbolic link '/usr/bin/pip': File exists

The command '/bin/sh -c apt-get update     && 
                        apt-get install -y     python3     python3-pip     && 
                        ln -s /usr/bin/python3 /usr/bin/python     && 
                        ln -s /usr/bin/pip3 /usr/bin/pip' 
returned a non-zero code: 1

Failed to create container.

Issue reference

The issue this PR will close: #207

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles or validates correctly
  • BASH scripts have been validated using shellcheck
  • All tests pass (manual and automated)
  • The documentation is updated to cover any new or changed features
  • Markdown files have been linted using the recommended linter. (See .vscode/extensions.json.)
  • Relevant issues are linked to this PR

Copy link
Contributor

@brooke-hamilton brooke-hamilton left a comment

Choose a reason for hiding this comment

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

I successfully built the container in GitHub Codespaces

@sstjean sstjean merged commit 1da1280 into main May 13, 2021
@sstjean sstjean deleted the fixpythonsymlink branch May 13, 2021 19:46
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.

.devcontainer errors on build with "failed to create symbolic link '/usr/bin/pip': File exists"
2 participants