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

Don't install dependencies from git when running Synapse in offline mode #1244

Conversation

squahtx
Copy link
Contributor

@squahtx squahtx commented Apr 21, 2022

Previously we used --no-index to prevent use of PyPI in offline mode,
but that did not apply to git dependencies. Add the --no-deps flag
to prevent pip from re-cloning those.

At this time, the only git dependency we might have is twisted trunk
during a daily CI run.

Signed-off-by: Sean Quah seanq@element.io

Fixes matrix-org/synapse#12517, hopefully (untested).

Previously we used `--no-index` to prevent use of PyPI in offline mode,
but that did not apply to git dependencies. Add the `--no-deps` flag
to prevent pip from re-cloning those.

At this time, the only git dependency we might have is twisted trunk
during a daily CI run.

Signed-off-by: Sean Quah <seanq@element.io>
@squahtx squahtx requested a review from a team as a code owner April 21, 2022 12:26
Copy link
Contributor

@DMRobertson DMRobertson left a comment

Choose a reason for hiding this comment

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

Sgtm, assuming CI is happy!

@DMRobertson
Copy link
Contributor

sytest failure appears to be #1130 ?

@squahtx squahtx merged commit 11ec649 into develop Apr 21, 2022
@squahtx squahtx deleted the squah/dont_install_git_dependencies_during_synapse_offline_install branch April 21, 2022 13:35
@squahtx squahtx restored the squah/dont_install_git_dependencies_during_synapse_offline_install branch April 21, 2022 13:45
@squahtx squahtx deleted the squah/dont_install_git_dependencies_during_synapse_offline_install branch April 21, 2022 13: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.

CI run against Twisted trunk is failing
2 participants