Skip to content

Cache gets updated for DSC modules but not for other modules #367

@codykonior

Description

@codykonior

I noticed today that a lot of modules in my VMs were out of date.

I had a look at (Get-LabHostdefault).ModuleCachePath and can see that there's lots of versions of each of the DSC Resource modules, but not of the other modules.

The way I specify the DSC Resource modules is like:

image

Compared to:

image

I had assumed with just a Name that it would download the latest version but it seems it doesn't. What sucks about this is that Lability knows what version the module is because when it stores it in the cache it also fills out the version number in the filename.

image

Workarounds I can imagine are:

  • Always specify the required version with these other modules also (annoying).
  • Clear the lab module cache every time with Clear-LabModuleCache (pretty harsh).
  • Maybe add another flag to these DSCResource/Modules sections (like Latest = $true) so for PSGallery it gets the latest version number, and downloads if there's a newer one?

Did I miss anything?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions