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 poetry install issue on platform.sh. #222

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

danbentley
Copy link
Contributor

poetry install raised: AttributeError: 'Link' object has no attribute 'is_absolute' during build on platform.sh.

It appears that it's possible for poetry-core to update even if poetry is locked. Our issue was a caused by a regression introduced in 1.0.4.

Updated poetry following the advice in the linked github issue and updated pip to fix an issue selecting the correct wheel for cryptography 36.0.0 on platform.sh.

Locked Poetry to 1.1.12 and pip to 21.3.1 for docker and platform.sh

`poetry install` raised: `AttributeError: 'Link' object has no attribute
'is_absolute'` during build on platform.sh.

It appears that it's possible for poetry-core to update even if poetry
is locked. Our issue wasa caused by a regression introduced in 1.0.4.

Updated poetry following the advice in the linked github issue and
updated pip to fix an issue selecting the correct wheel for cryptography
`36.0.0` on platform.sh.

Locked Poetry to `1.1.12` and pip to `21.3.1` for docker and platform.sh

Related issues:

 - [Link object being passed instead of Path to poetry.core.packages.file_dependency.FileDependency in poetry-core 1.0.5](python-poetry/poetry#4541)
 - [fix: Broken cache on Windows #4531](python-poetry/poetry#4531)
Copy link
Contributor

@ababic ababic left a comment

Choose a reason for hiding this comment

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

@danbentley Good work! The container is rebuilding fine for me locally with these changes, which I guess is the main concern, so I would say go ahead and merge :)

@danbentley danbentley merged commit 5ab3c76 into main Jan 11, 2022
@danbentley danbentley deleted the hotfix/poetry-install-on-platform-sh branch January 11, 2022 09:23
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