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

tool fix-redirects fails with CONTENT_TRANSLATED_ROOT pointing to translated-content-de #107

Closed
caugner opened this issue Jan 28, 2025 · 1 comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@caugner
Copy link
Contributor

caugner commented Jan 28, 2025

What information was incorrect, unhelpful, or incomplete?

% yarn content fix-redirects                                                                           ✹ ✚ ✭
yarn run v1.22.22
$ yarn -s info:rari && env-cmd --silent cross-env CONTENT_ROOT=files rari-tool fix-redirects

🐥 This command is now using rari: https://github.com/mdn/rari
🐞 Please report any issues here:  https://github.com/mdn/rari/issues/new?template=bug.yml

Using env_file: /Users/claas/github/mdn/content/.env
Error: io error: No such file or directory (os error 2) (/Users/claas/github/mdn/translated-content-de/files/es/_redirects.txt)

Caused by:
    No such file or directory (os error 2)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

What did you expect to see?

It should ignore locales that aren't present in CONTENT_TRANSLATED_ROOT.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

May be mitigated by fixing #106.

@caugner caugner added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 28, 2025
@caugner
Copy link
Contributor Author

caugner commented Jan 30, 2025

Closing as won't fix, as the fix-redirects command now supports a locale parameter, which avoids the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant