Commit 7aaef7b
authored
🩹 [Patch]: Add Retry on Install-Module (#88)
## Description
This pull request introduces changes to the
`Resolve-PSModuleDependency.ps1` script to improve module installation
reliability by adding retry logic.
Enhancements to module installation:
*
[`scripts/helpers/Resolve-PSModuleDependency.ps1`](diffhunk://#diff-48557b471e7d62a89be3627235334ab8a39eb6119174abb61714b92d844508e2L1-R3):
Added a `#Requires -Modules Retry` directive to ensure the `Retry`
module is available.
*
[`scripts/helpers/Resolve-PSModuleDependency.ps1`](diffhunk://#diff-48557b471e7d62a89be3627235334ab8a39eb6119174abb61714b92d844508e2R52-R54):
Wrapped the `Install-Module` command with retry logic, attempting the
installation up to 5 times with a 10-second delay between attempts.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] 1 parent 331d42c commit 7aaef7b
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
0 commit comments