Commit 5df24bf
authored
🩹 [Patch]: Add Retry on Install-Module (#85)
## Description
This pull request includes several changes to the
`scripts/helpers/Build/Resolve-PSModuleDependency.ps1` and
`scripts/main.ps1` files to improve module dependency resolution and
error handling.
### Improvements to module dependency resolution and error handling:
*
[`scripts/helpers/Build/Resolve-PSModuleDependency.ps1`](diffhunk://#diff-b278dc96f784d462b15a4fe67b088a5b5d9cc502dd6eba3d660da085e576652fL1-R3):
Added a requirement for the `Retry` module to handle retries during
module installation.
*
[`scripts/helpers/Build/Resolve-PSModuleDependency.ps1`](diffhunk://#diff-b278dc96f784d462b15a4fe67b088a5b5d9cc502dd6eba3d660da085e576652fR52-R54):
Implemented retry logic with 5 retries and a 10-second delay for the
`Install-Module` command to improve robustness against transient errors.
### Minor formatting changes:
*
[`scripts/main.ps1`](diffhunk://#diff-dc2e5a659836b1b73abb03421c567f5018c2755677c4a0aa764cb26117b68011L1-R1):
Fixed the casing of the `#Requires` directive for the `Utilities`
module.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] 1 parent 48fbb00 commit 5df24bf
2 files changed
+7
-3
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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments