-
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
Create #658 - WinGet Download.md #2953
Create #658 - WinGet Download.md #2953
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would think that the ability to download only would make more sense in the context of cache management. This discussion around cache management even includes the Download only request. I think we should assess if cache management makes more sense here to decrease code complexity
We had some internal discussions about this. Since we already moved installer download to temp, there's not a lot more benefit of doing cache management. For customers wanting to do offline installation, we think explicit winget download is the way to go. We had customer asks that they need to manage a group of devices with limited network access, so winget download would be an option for this. |
Spellcheck - fixed one word
This comment has been minimized.
This comment has been minimized.
By the way, I just thought of something, do we deal with dependency packages for download? If yes, what will be the behavior and layout (folder structure, filename, etc) |
We will need to handle dependency packages. |
Need to include an option for only downloading the apps and not the license file. Does having a similar flow for License file only make sense? |
No, licensing requires a specific package (content id), licensing call must come after download call. |
I was thinking about the scenario of when the app downloads but the license file fails to download. Should the administrator then re-download the app again to get the license file. |
Thinking about the use of --download-directory, would it make more sense for us to use "--Location", or "--Path"? |
Another thought, what if we include a new parameter "--continueOnError" that when applied would continue the download of the main and dependencies even after a single dependency fails. |
I'd propose a more generic |
I like this idea of having a parameter that can provide a deterministic experience for the user, that allows the user to determine what they want the experience to be. |
If we are to replace existing parameters with new ErrorAction parameter, it will be a breaking change. And needs to go through all existing workflows to ensure the experience is accurate. As well as all Com and Powershell work. I would suggest making this a different work item not attached to this download work. For download, I think using --force or a specific flag is good for the purpose. We also need to think about each different error case by case, some errors are hard stop (installer corrupt, etc), some errors (like dependency download failure for winget download) may let the workflow continue. By the way, the reason I would like dependency download to fail the workflow is for consistency. Looks like in winget install flow, a dependency download failure will cause main package to fail to install. In winget download flow, a dependency download failure may be ok if user desires. |
I'll make a separate issue for the proposed ErrorAction |
I guess the download command got implemented, and the spec never made to the repo. |
Yep, we just noticed yesterday and Ryan is working on updating it to match the final implementation. Thanks. |
Microsoft Reviewers: Open in CodeFlow