Skip to content

I am not able to really remove all cache. #630

@a-chacon

Description

@a-chacon

Don't matter how many times I execute the command rv cache clean it will always find a file to remove.

Image

This is happening because of shell integration. The command shell init calls shell env and that is loading Configs and calling best_ruby() method which finally calls discover_rubies_matching in cache_ruby and create this cache. So the cache will never be really empty because shell integration is executed always.

Some solutions:

  1. Apply a --no-cache to all shell init scripts. This still will be copying the interpreter to a temporal folder.
  2. Why cache a ruby interpreter already installed? I was looking the code and I don't get why to cache it if I already have it installed in the system. Why not just point to that location? I mean, that is what finally happen.

Any other idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions