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 `--no-install` option to only update files without installing

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

I want to add/remove a dependency and generate the lock file without installing. For example,

poetry remove --no-install requests
poetry add --no-install httpx

would update the pyproject.toml and poetry.lock but not install anything. Maybe someone can think of a better name than --no-install that would make sense for the remove case too.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:24
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

12reactions
abncommented, Sep 10, 2020

poetry add --lock option already exists to handle this in 1.1.0b2. This can also be added into poetry remove command.

$ poetry@1.1.0b2 add --help | grep lockfile
  --lock                 Do not perform operations (only update the lockfile).
6reactions
jtrakkcommented, Jun 8, 2020

The goal is to prevent Poetry from installing or uninstalling anything, because that is slow and I don’t need it. I only want it to manage the pyproject.toml and poetry.lock files, not create a virtualenv or install anything.

Maybe it should be --dont-manage-environment and POETRY_DONT_MANAGE_ENVIRONMENT=1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - How to update Poetry's lock file without upgrading ...
There is a specific option for the lock command: poetry lock --no-update. This makes it possible to remove a dependency from pyproject.toml ...
Read more >
How to use yum to download a package without installing it
yum install --downloadonly --downloaddir=<directory> <package>. Confirm the RPM files are available in the specified download directory.
Read more >
Command-line interface / Commands - Composer
The install command reads the composer.json file from the current ... --no-install: Does not run the install step after updating the composer.lock file....
Read more >
yarn install
yarn install is used to install all dependencies for a project. ... Running yarn with no command will run yarn install , passing...
Read more >
apt-get - APT package handling utility -- command-line interface
The difference is that it only removes package files that can no longer be downloaded, ... --no-install-recommends Do not consider recommended packages as...
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