Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Action Error: The 'Invoke-MtGraphRequest' command was found in the module 'Maester', but the module could not be loaded due to the following error: [Assembly with same name is already loaded] #606

Open
robm82 opened this issue Jan 2, 2025 · 3 comments

Comments

@robm82
Copy link

robm82 commented Jan 2, 2025

I have set up a GitHub action to automate the generation of the Maester reports, which do get generated, but I see several errors in the console log:

image

I did some research into the error, and I'm not sure what the fix is, but someone mentioned that when installing the module as part of the action.yml, to use -AllowClobber.

Any help is greatly appreciated, and awesome work with Maester 🤓

@wmacdonald10
Copy link

I have the same issue, been trying to track down the cause with no success yet :(

@wmacdonald10
Copy link

wmacdonald10 commented Jan 10, 2025

I was finally able to reproduce the error in Ubuntu on WSL.

  1. I installed PowerShell Core

  2. Installed and ran Maester (Invoke-Maester)

  3. Did not get the Invoke-MtGraphRequest "Assembly with same name is always loaded" errpr
    image

  4. Installed Microsoft.Graph (installs all latest modules v2.25.0

  5. Run Invoke-Maester

image

The issue is likely the conflict of these two (2) modules, the Maester module has a required dependency on 2.2.0 (shown below)

image

image

@wmacdonald10
Copy link

I tested the following workaround #619 to get around the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants