question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Reactions:34
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
brettdhcommented, Aug 24, 2020

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 run poetry 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”.

1reaction
sh-at-cscommented, Sep 7, 2022

This seems to have been implemented recently in #5783.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found