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

The WinGet task doesn't work because WithRetry is not defined #59

Open
MarkOsborneMS opened this issue Jan 30, 2024 · 2 comments
Open

Comments

@MarkOsborneMS
Copy link

Describe the bug
When I try and run the WinGet task using the DevBox CLI I get the following error:
"stderr":"WithRetry : The term 'WithRetry' is not recognized as the name of a cmdlet, function, script file, or operable program.

To Reproduce
Steps to reproduce the behavior:

  1. Attach our catalog that contains the WinGet task from the microsoft/devcenter-catalog (github.com)
  2. Create a devbox.yaml that uses the WinGet task
  3. Run the devbox.yaml on a dev box using the DevBox CLI
  4. See error
    "stderr":"WithRetry : The term 'WithRetry' is not recognized as the name of a cmdlet, function, script file, or operable program.

Expected behavior
It works

Additional context
In Tasks/winget/main.ps1

WithRetry is used but not defined and generates the following error when I try and run a WinGet task using the DevBox CLI:

"stderr":"WithRetry : The term 'WithRetry' is not recognized as the name of a cmdlet, function, script file, or operable program.

It looks like the code was copied from the git-clone task but WithRetry function was missed.

@davidzenisu
Copy link

Just ran into the exact same issue.

@MarkOsborneMS
Copy link
Author

MarkOsborneMS commented Feb 13, 2024

Proposed fix in PR #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants