-
Notifications
You must be signed in to change notification settings - Fork 43
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
Get-Psm1SchemaName: Fails to parse schema.psm1 correctly #410
Comments
This is a bug on Linux and macOS. It works on Windows. So the command should probably fail if it can't parse configurations on a specifc OS. |
The issue happens in
If seems to be a well known issue since quite a while: PowerShell/PowerShell#10782. |
Yes it seems that the build worker "ubuntu 20.04" in Azure Pipelines change so that in no longer can parse the configurations. Guessing probably because PS was updated. |
But I think we should catch and throw the parse error so it's clear why it fails to find a configuration statement 🤔 |
Right, happy to take care of it. |
@raandree great! I review as soon I see the PR is there. 🙂 |
Problem description
Fails to build the module in the pipeline if there is a composite resource.
Verbose logs
How to reproduce
Run build on https://github.com/dsccommunity/ConfigMgrCBDsc with Sampler v0.116.1.
Fails on:
Expected behavior
Build without failing.
Current behavior
Throws exception
Suggested solution
Verify that the public command works as expected, and throw if there is an issue using it cross-platform.
Operating system the target node is running
PowerShell version and build the target node is running
Module version used
The text was updated successfully, but these errors were encountered: