-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Update jsonschemanet version testing #19617
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
Update jsonschemanet version testing #19617
Conversation
|
Looks like this is the problem, which is what I suspected: I don't understand this because the file is definitely there. Adding more logs... |
|
More detail: I'm unsure why this isn't able to find the file. I'm open to ideas from someone who know linux better. |
|
Okay. It looks like it's a difference in how filename URIs are handled. var windowsFilePath = "C:\\Folder\\target.json";
var unixFilePath = "/Folder/target.json";
var windowsFileUri = new Uri($"file:///{windowsFilePath}");
var unixFileUri = new Uri($"file:///{unixFilePath}");
Console.WriteLine(windowsFileUri);
Console.WriteLine(windowsFileUri.AbsoluteUri);
Console.WriteLine(windowsFileUri.AbsolutePath);
Console.WriteLine();
Console.WriteLine(unixFileUri);
Console.WriteLine(unixFileUri.AbsoluteUri);
Console.WriteLine(unixFileUri.AbsolutePath);
Console.WriteLine(unixFileUri.Host);That last line is missing the Also interesting is the lower-casing. Since *nix operating systems have case-sensitive file systems, I wonder if that's going to cause a problem. @adityapatwardhan @daxian-dbw I would love to get your thoughts on this. |
|
Looks like I might be able to just use Windows: |
|
Getting closer. Not sure why it's changing to backslashes. |
|
I wonder to see
|
|
No, the fragment is removed before attempting to fetch the file. Only the base URI is used in the fetching code. The fragment only is resolved after the file content is retrieved. |
|
Yep... Looks like the problem is in how I build the base URI from a *nix file path. I'll push out a release and update here first. If it works, then I'll apply changes to the other PR and close this. Then we can all move on. |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
Not sure why more tests are failing, but the URI issue is resolved. Probably my other error handling changes. I'm going to just update the package version on the other PR and see what happens there. The pester tests work locally on that branch with the new version. Closing this for now. |

@daxian-dbw, this is the same as #19610, but I want to use this for testing so I don't gunk up the commit history over there. Please approve any builds if you need to. Otherwise, feel free to ignore.
!!! NOT FOR MERGING !!!