This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Pin poetry.core in Docker images #12853
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ad4fbc3
Fix docker images
erikjohnston bba8491
Newsfile
erikjohnston 37e8f50
Update to 1.1.13
erikjohnston 9284e84
Actually pin what we want to pin, rather than just applying monkey at…
erikjohnston 4e8b44a
Add back comment
erikjohnston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix the docker file after a dependency update. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ RUN \ | |
# NB: In poetry 1.2 `poetry export` will be moved into a plugin; we'll need to also | ||
# pip install poetry-plugin-export (https://github.com/python-poetry/poetry-plugin-export). | ||
RUN --mount=type=cache,target=/root/.cache/pip \ | ||
pip install --user git+https://github.com/python-poetry/poetry.git@fb13b3a676f476177f7937ffa480ee5cff9a90a5 | ||
pip install --user "poetry-core==1.1.0a7" "git+https://github.com/python-poetry/poetry.git@fb13b3a676f476177f7937ffa480ee5cff9a90a5" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I remember fighting with this a lot, though I can't exactly remember what this commit did for us. Probably a case of "latest master fixed it" and this was the commit at the time. I also remember that after I updated some dependency specifications in signedjson that there were suddenly fewer bugs with the export. Given that the debian image doesn't use this commit, I wonder if it might be worth trying to use the same version that the docker image uses. |
||
|
||
WORKDIR /synapse | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changelog entry is not very descriptive and doesn't explain why we made the change (what was broken before).
For reference, these changes are spawning from some discussion in #synapse-dev:matrix.org which discusses the
ModuleNotFoundError: No module named 'matrix_common'
errors popping up when Complement is running in CI.As far as I can tell, the dependency was missing in CI because of this reason mentioned in the room discussion:
As the issue description already mentions, the root cause might be because we didn't pin
poetry-core
before and it was pulling in a recent beta release which introduced the unexpected problem behavior. In any case, pinning topoetry-core==1.1.0a7
makes it work as expected to install all of the deps.This information should also be in the PR description. I'm not confident in my conclusion here to update it myself.