-
Notifications
You must be signed in to change notification settings - Fork 31
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
[CleanRepo] remove-hops doesn't handle monikers in redirect file #349
Comments
@Mikejo5000 This is happening because you have two redirects for the same file:
One could argue that CleanRepo should handle it better though, so I'll leave this issue open. But you could remove one of those redirects for now and then rerun the tool. |
@gewarren Great, thanks! I'll try it out |
@gewarren Genevieve, do you know what this error means? I don't see anything wrong with line 905 in the redirection file. Removing hops from the '.openpublishing.redirection.json' redirection file. |
@Mikejo5000 Probably means you have true or false in quotes. Should look like this instead: https://github.com/dotnet/docs/blob/b74766942f2d9c52375d29c515be9fdcaced4d4b/.openpublishing.redirection.csharp.json#L230 |
Yes, that looks right. Thanks! |
It appears that the tool is not handling monikered redirects well. The following causes a "same key" error when there's another redirect with the same source_path but a different moniker value (vs-2022): |
@Mikejo5000 Okay, thank you. Let's track that with this issue. I'll update the title. |
CleanRepo doesn't handle monikered redirects well. The following causes a "same key" error when there's another redirect with the same source_path but a different moniker value (vs-2022):
The text was updated successfully, but these errors were encountered: