Skip to content
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

WinGet configure should look for a default config file if none is provided #4482

Open
jmatthiesen opened this issue May 15, 2024 · 1 comment
Labels
Command-Configure Issue related to WinGet Configuration Issue-Feature This is a feature request for the Windows Package Manager client.

Comments

@jmatthiesen
Copy link
Member

Description of the new feature / enhancement

I'm a lazy developer and like to type as few characters as possible. It would be great if I could just run the winget configure command from the root of a project folder and the configure command would find my default config and use it. Similar to how I can run the npm install command with Node applications and I don't have to specify a path to my package.json, or I can run dotnet build for .NET apps and I don't have to specify what project file to build (but I can if the defaults don't work for me).

Proposed technical implementation details

When a user runs winget configure in a folder:

  • Look first for the default configuration file in ./configurations/configuration.dsc.yaml (following the recommended default file naming conventions)
  • If the default isn't found, behave the same as it does today
    • -or- Even better would be to recurse down from the current directory, look for files named *.dsc.yaml (or *.dsc.yml) and then provide the user with a list of relative file paths for all the configuration files found. This would make it easy to copy/paste and run winget configure -f with one of the discovered files.
@jmatthiesen jmatthiesen added the Issue-Feature This is a feature request for the Windows Package Manager client. label May 15, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label May 15, 2024
@denelon denelon added Command-Configure Issue related to WinGet Configuration and removed Needs-Triage Issue need to be triaged labels May 15, 2024
@denelon
Copy link
Contributor

denelon commented May 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Configure Issue related to WinGet Configuration Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

2 participants