-
Notifications
You must be signed in to change notification settings - Fork 391
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
SaveDscDependency throws error on Linux #1228
Comments
Agreed with Ben |
Sorry, I've been busy lately, I plan to have a look at this possibly by next week |
Thanks @bergmeister . Looking forward to it. |
I can repro this and have a local fix ready. Will open a PR in the next days. The problem is this line here that is Windows specific as Linux does not have an |
Thanks for all the great work @bergmeister! To answer your question, It is not that we are using DSC on Linux. It's that we want our CI QA tests to pass on all ps files in the repo (some of them being DSC configurations) and off course script analyzer is a major part of the QA. QA tests are targeted to run both on Windows and Linux in our Azure DevOps environment. This is also done to assure every dev in our project can validate the base QA tests on their own system wether it's mac, win or linux. That being said, we could opt for a more granular approach where we check every file individually to see if it's a DSC configuration and don't test when running on Linux. Right now we go in by storm and have a generic set of parameters for Invoke-ScriptAnalyzer for every file we check. |
You're welcome @bgelens
|
Steps to reproduce
Run with version 1.18.0 using SaveDscDependency switch on an arbitrary ps1 file (doesn't have to be a configuration) on Linux (I'm running Ubuntu 18.04 on WSL).
Expected behavior
Just run without an issue
Actual behavior
Environment data
The text was updated successfully, but these errors were encountered: