Skip to content

Each install of pwsh should have it's own ModuleAnalysisCache #8172

Closed

Description

@SteveL-MSFT

If you have multiple copies of PSCore6 on your system, they all write to the same ModuleAnalysisCache file. This can potentially produce unexpected results. Modules in this cache are stored with absolute path, so if pwsh1 is in path $PSHOME1, then it will cache modules under $PSHOME1\Modules. When you then run pwsh2 in $PSHOME2, it can still find modules in $PSHOME1\Modules since it's in the cache. It seems that each "install" of PSCore6 should write to its own ModuleAnalysisCache. Perhaps add a hash of the path to pwsh to the cache filename.

Activity

  1. added
    WG-Engine
    on Nov 2, 2018
  2. added
    Issue-Enhancement
    Resolution-Fixed
    on Nov 14, 2018
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

    Issue-EnhancementResolution-FixedWG-Engine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions