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

Version schema file not found #762

Closed
EluciusFTW opened this issue May 13, 2022 · 4 comments · Fixed by #763
Closed

Version schema file not found #762

EluciusFTW opened this issue May 13, 2022 · 4 comments · Fixed by #763
Milestone

Comments

@EluciusFTW
Copy link

EluciusFTW commented May 13, 2022

I'm unsure if this is an issue here, so please feel free to close this.

The schema file
does not seem to exist anymore:

image

@EluciusFTW
Copy link
Author

I changed master in the path to main, and now it is found again. Did it move recently, as I'm sure it worked with master a few months ago?

@KalleOlaviNiemitalo
Copy link

According to https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch, "raw file URLs are not redirected." This information was added to the docs in github/docs#4830 in April 2021 so it's not a recent change.

Maybe the master branch was not deleted immediately when main was added? The version.json file in this repo referenced the master branch until 3c38b4d#diff-093664cc0c7cf4a76165141e93265eeb139f655bbee8105ed3ee2534a612354c.

@AArnott
Copy link
Collaborator

AArnott commented May 13, 2022

I don't know about that doc, but the raw URL is being redirected. master was renamed to main just yesterday. The raw URL you've been using would still work, except that I also changed the capitalization of the path, which doesn't get forwarded.

Original url: https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json
Update just casing: https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/Nerdbank.GitVersioning/version.schema.json
Update just branch:
https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json
Update casing and branch: https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/Nerdbank.GitVersioning/version.schema.json

So we see by testing that the branch name isn't the problem. It is getting redirected. It's the case change.

This is really unfortunate. We should keep the URL that everyone is using working.

@AArnott
Copy link
Collaborator

AArnott commented May 13, 2022

When this PR completes, the original URL will work again, and any "fix" you made to accommodate the new URL will cease to work. So I advise everyone to not fix their URLs at this point (except perhaps to change master to main, but that's optional).

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

Successfully merging a pull request may close this issue.

3 participants