make poetry install work offline in a hermetic/network-isolated build environment #10788
Unanswered
harshitbansal184507
asked this question in
Q&A
Replies: 1 comment
-
|
As far as I know, we have never tried to support offline installs. I assume we would prefer to avoid unnecessary network requests if someone were to take the time to check whether they are necessary or could be avoided with a pre-populated cache, since they are likely to slow down the installation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been trying to make poetry install work offline in a hermetic/network-isolated build environment and hit a wall. Tried three things:
1)Pre-populated Poetry's artifact cache with correct paths, but Poetry still makes a network call before checking the cache for PyPI packages.
2)Rewrote poetry.lock with file:// URLs, failed because requests doesn't support file:// scheme.
3)Injected real HTTPS URLs into poetry.lock and pre-populated cache, tested live with network blocked, _download_link in executor.py still went straight to network and ignored the cache completely.
Am I missing something or there is no support around offline installs ?
Beta Was this translation helpful? Give feedback.
All reactions