You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My personal use case is configuration files, but would be perfect to ingest any yaml structure without extra modules with stale development and with official support for PS +7
A couple of points before this one is marked as closed,
It would be good to have an official statement - even if just team blog post entitled "Why doesn't PowerShell ship a YAML module" this has been rumbling along for five years now and people will keep asking.
What would people like the PowerShell team to do ?
Find a way to ship the community module with PowerShell 7.x ? (Possibly fork the code and maintain it, but it means taking a dependency on a third party YAML library for .NET with which comes with that)
Build a "clean clone" version of the community module? i.e. the same commands work, the same YAML library is doing the work under the surface (same dependency issues) but the module code comes from the team
Lobby the powers-that-be on the .NET team to add YAML support (much as Json support was added after years of relying on 3rd party libraries), and when they do add cmdlets to leverage it
Write their own parser (which requires significant effort, and would likely be dropped if/when YAML support goes into .NET)
None of these would allow PowerShell to do something it can't do now using a 3rd party module, or to do it very much better, than the third party module ; they address the problem that some people using PowerShell want all modules they use to be first-party ones; I have worked for customers who make the processes to adopt 3rd party modules an onerous one so I understand that this can be for good reason. If the PowerShell team took a dependency on YamlDotNet, things could be made easier for those customers. But it is easy to see this could be repeated for many, many things - more than the team could ever have capacity for. That's why the default position is these additions should come from the community - people can make a case that X should not follow that default, but to date the case made for YAML hasn't convinced the people it needs to.
"I eventually had to go down to the cellar... with a torch." (flashlight) 'The lights had probably gone.’
"So had the stairs."
'You found the notice didn’t you?'
"Yes I did. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying 'Beware of The Leopard'."
Instead of having the teams position in a comment to a closed issue on github it might be helpful to give it a bit more, you know, prominence :-)
Activity
[-]Native support for YAML[/-][+]Feature Request: Native support for YAML[/+]vexx32 commentedon Jan 30, 2022
There are multiple issues for this already:
jhoneill commentedon Jan 31, 2022
A couple of points before this one is marked as closed,
What would people like the PowerShell team to do ?
None of these would allow PowerShell to do something it can't do now using a 3rd party module, or to do it very much better, than the third party module ; they address the problem that some people using PowerShell want all modules they use to be first-party ones; I have worked for customers who make the processes to adopt 3rd party modules an onerous one so I understand that this can be for good reason. If the PowerShell team took a dependency on YamlDotNet, things could be made easier for those customers. But it is easy to see this could be repeated for many, many things - more than the team could ever have capacity for. That's why the default position is these additions should come from the community - people can make a case that X should not follow that default, but to date the case made for YAML hasn't convinced the people it needs to.
vexx32 commentedon Jan 31, 2022
This comment in one of the linked issues above discusses the reasoning / stance of the pwsh team. As far as I know it hasn't changed much. 🙂
jhoneill commentedon Feb 1, 2022
Rain Sallow (/u/ta11ow) (@vexx32) Indeed. I'm remined of
Instead of having the teams position in a comment to a closed issue on github it might be helpful to give it a bit more, you know, prominence :-)