Add --only-root option for install command.
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
It would be nice if the --only-root
option for install command will be introduced. We have a use-case with the multistage docker build. At first, we install dependencies with --no-root
option because dependencies are not changing so often. During the second stage, we would like to install only the application. Unfortunately, there are some git dependencies so the second stage requires git installed even no dependencies are finally installed.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:34
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Commands | Documentation | Poetry - Python dependency ...
Options #. --addons : List only add-on packages installed. --tree : List the dependencies as a tree.
Read more >install command (NuGet CLI) - Microsoft Learn
To add a dependency, either add a package through the Package Manager UI or Console in Visual Studio, or modify packages.config and then...
Read more >Yocto Project Development Manual
Stage your changes by using the git add command on each file you changed. Commit the change by using the git commit --signoff...
Read more >Installing Mellanox OFED - NVIDIA Networking Docs
For further information, please see '--add-kernel-support' option below. ... installation parameters can be retrieved by running the command ...
Read more >5 Installation of the JDK and JRE on Linux Platforms
Note: When you download and install the JDK, the associated Java Runtime Environment (JRE) is also installed. The following table lists the options...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also interested in this feature. I have a similar multistage build, with the added constraint that the second stage has no network connectivity, so as to isolate the parts of the build that depend on external data. We could remove
--no-root
from the first-stage installation, but this would require moving build steps to the first stage as well, which defeats the purpose of them taking place in a second, isolated environment. Current workaround is to runpoetry install
during the second stage as well - which works, as long as the venv has not changed between the stages - but it makes me uneasy that I can’t explicitly say “only install the root package”.This seems to have been implemented recently in #5783.