-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support file composition for WinGet Configure #3797
Comments
I may already be able to implement this somewhat in a hacky way with a script resource that calls Given that, I can see two "obvious" mechanisms: The first would be to have a special resource type and simply use the current config schema. There would need to be special handling for it to cure the problems listed above with the hack approach. It would really need to merge the file contents before actually processing the resources. This magic resource type being handled differently could be confusing, especially for anyone trying to implement a third-party parser/editor. An upside there would be that The second would be to have a separate section (like For id/dependencies: I don't see a lot of value in hoisting ids so that dependsOn can work across files. That would break composability and add complexity to handle id collisions via namespacing or mangling. I think a simple test to require the included file was configured would be enough |
@PhilipRieck thanks for submitting this Issue! We're looking at several different scenarios where multiple configuration files represent the single "logical" configuration we want to apply. Part of the challenge is the visibility into the actual configuration. We are looking at the proposed powershell/DSC v3 implementation and some of that work is in progress. It was an intentional decision to initially limit our current use case to a single configuration file (on the local file system) while we iterate on the designs to support these more sophisticated scenarios. The best case scenario in my mind is some kind of mechanism to support what you want and it includes the ability to present a single merged view of everything to be configured. I don't want someone to run a configuration thinking it's only a few things they need to evaluate and then find out after the fact that any number of arbitrary configurations are also applied. This is certainly a "high-order" problem on the WinGet side rather than just on the PowerShell DSC side, but I want to keep scenarios like this visible. Mentioning @SteveL-MSFT for visibility. |
Description of the new feature / enhancement
I'd like to be able to reference one file from another to use with
winget configure
. When WinGet's configure command processes a file with one or more references, it applies the union of all configurations described.This would become even more powerful with #3554
This would support the following scenarios and possibly more:
Proposed technical implementation details
No response
The text was updated successfully, but these errors were encountered: