Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Git-DsCResource not working after updating pwsh to 7.4  #913

@AnassKartit

Description

@AnassKartit

After updating the github runners to 7.4 on ubuntu20.04 I get this error which prevents me from building mof packages:
you can reproduce it by running the below powershell install for modules then get-dsc

$modules = @('GuestConfiguration', 'PSDesiredStateConfiguration', 'PSDscResources', 'nxtools')
  foreach ($module in $modules) {
    Install-Module -Name $module -Force -Scope CurrentUser
  }
  Get-DscResource

Get-DscResource:
Line |
6 | Get-DscResource
| ~~~~~~~~~~~~~~~
| Exception calling "LoadDefaultCimKeywords" with "2" argument(s): "Unable
| to load shared library 'libmi' or one of its dependencies. In order to
| help diagnose loading problems, consider using a tool like strace. If
| you're using glibc, consider setting the LD_DEBUG environment variable:
| /opt/microsoft/powershell/7/libmi.so: cannot open shared object file: No
| such file or directory /opt/microsoft/powershell/7/liblibmi.so: cannot
| open shared object file: No such file or directory
| /opt/microsoft/powershell/7/libmi: cannot open shared object file: No
| such file or directory /opt/microsoft/powershell/7/liblibmi: cannot open
| shared object file: No such file or directory "

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