-
Notifications
You must be signed in to change notification settings - Fork 180
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
Optimize yml extraction in CompatibleConvertFrom-Yaml
#9332
base: main
Are you sure you want to change the base?
Conversation
The following pipelines have been queued for testing: |
I don't have much context on this issue or the module installation work that preceeded it... Would it make sense for us to install modules from an Azure Artifacts feed that upstreams to PowerShell gallery? That might be faster and more consistent... likely at the cost of efficiency in CI given that |
That's definitely a way to avoid the issue with installing a module! |
@weshaggard it looks like Ben and Dan think that I should always use the powershell-yaml, but to use a public feed of ours with upstream to psgallery instead of directly installing the module. My thoughts if we want to do this:
Do you have any protests to above? If yes, good with that feed? |
I have not issues with trying out this approach. I suspect we don't even need to add PS gallery as an upstream if we simply include the package we one on the feed. I'd also be OK creating a feed specifically for PS if that is easier. |
I do feel that we should use the Thanks @weshaggard |
I know @benbp is also looking into this so please coordinate |
Yeah @scbedd I'm already working on this. But it can be separate from this work regardless, since they are both achieving different things (reliable downloads vs. not downloading too much) |
I'm going to wait on #9392, then update this PR to remove the optional usage of |
@scbedd I should have it in today, a couple more changes pending. |
RE: the script-level variable being used as a module variable.
I can't use simple a
$YmlPresent = $null
outside of the function, as the way the scoping works out we still end up runningget-command
repeatedly.I think this is a safe pattern. Welcome feedback.