Skip to content

Add a way to disable cache like PIP_NO_CACHE_DIR=off #3997

Closed

Description

@awoimbee
  • 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

Use case

Building a container for a project with lots of big dependencies.

The issue

We had >1GB of data in ~/.cache/pypoetry

The current solution

Run rm -rf ~/.cache/pypoetry/ after each call to poetry

The requested feature

A setting to disable cache completely, juste like we can use PIP_NO_CACHE_DIR=off for pip.
Poetry already has a setting for cache-dir, poetry config cache-dir /dev/null doesn't work (NotADirectoryError).
Maybe we could set cache-dir to none or something like that ?

Activity

  1. abn commented on Apr 30, 2021

    @abn
    Member

    We should really add --no-cache | --disable-cache options to commands that need them.

  2. mkniewallner commented on Jul 9, 2022

    @mkniewallner
    Member

    Since #5519 has been merged and released in 1.2.0b2, I believe that this issue can be closed?

  3. github-actions commented on Mar 1, 2024

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked as resolved and limited conversation to collaborators on Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions