-
-
Notifications
You must be signed in to change notification settings - Fork 6
feat: warn on the Az.Storage + EXO OData conflict (Test-DPLibraryConflict, #174 Phase 2) #231
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a09c830
docs(spec): #174 Phase 2 conflict detection & warning design
SamErde 1afa574
docs(plan): #174 Phase 2 conflict-warning implementation plan
SamErde 5d8b0fe
feat(policy): add knownConflicts (#174 Az.Storage+EXO OData) + OData …
SamErde 7883960
feat(build): ship knownConflicts.json into the module output
SamErde 9bd1242
feat(module): add knownConflicts reader, detector, and warning format…
SamErde 06410d5
feat(module): add public Test-DPLibraryConflict
SamErde 1cfbd6e
feat(module): warn on known module conflicts from Import-DPLibrary (i…
SamErde f797544
docs: document the Az.Storage + EXO OData known limitation (#174)
SamErde 50b8179
test(#174): model both import orders with a shared OData slot (EXO-fi…
SamErde 946b447
fix: address Codex/Copilot review on #231 (conflict-warning robustness)
SamErde 99ec780
docs(changelog): add 2.2.0 entry (conflict detection/warning + releas…
SamErde bbb8767
fix: directory-prefix match in conflict-watch handler (avoid sibling …
SamErde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <# | ||
| .SYNOPSIS | ||
| Extracts the knownConflicts array from the dependency policy into a standalone JSON file shipped | ||
| with the module, so the runtime conflict-warning can read it (the full policy is not shipped). | ||
| .PARAMETER PolicyPath | ||
| Path to dependency-policy.json. | ||
| .PARAMETER OutputPath | ||
| Path to write the extracted knownConflicts JSON (an array). | ||
| #> | ||
| [CmdletBinding()] | ||
| param( | ||
| [Parameter(Mandatory)] | ||
| [ValidateNotNullOrEmpty()] | ||
| [string]$PolicyPath, | ||
|
|
||
| [Parameter(Mandatory)] | ||
| [ValidateNotNullOrEmpty()] | ||
| [string]$OutputPath | ||
| ) | ||
|
|
||
| $ErrorActionPreference = 'Stop' | ||
|
|
||
| $Policy = Get-Content -LiteralPath $PolicyPath -Raw | ConvertFrom-Json | ||
| $Conflicts = @($Policy.knownConflicts) | ||
|
|
||
| $OutputDirectory = Split-Path -Path $OutputPath -Parent | ||
| if ($OutputDirectory -and -not (Test-Path -LiteralPath $OutputDirectory -PathType Container)) { | ||
| $null = New-Item -Path $OutputDirectory -ItemType Directory -Force | ||
| } | ||
|
|
||
| ConvertTo-Json -InputObject $Conflicts -Depth 20 | Set-Content -LiteralPath $OutputPath -Encoding utf8NoBOM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.