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

Missing appinfo/info.xml breaks translations #875

Closed
nickvergessen opened this issue Jan 13, 2022 · 5 comments · Fixed by #878
Closed

Missing appinfo/info.xml breaks translations #875

nickvergessen opened this issue Jan 13, 2022 · 5 comments · Fixed by #878
Assignees
Labels
bug Something isn't working

Comments

@nickvergessen
Copy link
Member

Since ef2537c there was no update of translations anymore.
The translation script fails with the following error:

tx INFO: Pushing source file (translationfiles/templates/cookbook.pot)
tx ERROR: Could not upload source file. You can use --skip to ignore this error and continue the execution.
tx ERROR: [Errno 2] No such file or directory: '/app/translationfiles/templates/cookbook.pot'

The problem is because you removed the appinfo/info.xml, the appid can not be read, so it falls back to directory name (best guess) and that does not work with the translation script as all apps are checked out into /app

However we also can not add a section for each app to run a command before doing translations. can you bring the file back?

@nickvergessen nickvergessen added the bug Something isn't working label Jan 13, 2022
@nickvergessen
Copy link
Member Author

And sorry, in my attempt to debug this I seem to have pushed a commit to stable which triggered a 0.9.9

@christianlupus
Copy link
Collaborator

Since ef2537c there was no update of translations anymore. The translation script fails with the following error:

tx INFO: Pushing source file (translationfiles/templates/cookbook.pot)
tx ERROR: Could not upload source file. You can use --skip to ignore this error and continue the execution.
tx ERROR: [Errno 2] No such file or directory: '/app/translationfiles/templates/cookbook.pot'

The problem is because you removed the appinfo/info.xml, the appid can not be read, so it falls back to directory name (best guess) and that does not work with the translation script as all apps are checked out into /app

However we also can not add a section for each app to run a command before doing translations. can you bring the file back?

Yep, I removed the file intentionally. We had problems in the past with releasing new versions: When the app info files generated, it overwrote any setting regarding NC core compatibility accidentally only made in the cached version appinfo/info.xml and not the template that is used for the generation (.github/actions/deploy/appinfo/info.xml.dist).

For now, there is a new release worth quite some translations out. I will have to look at this in a bit more detail and set up some sort of protection mechanism to avoid these nasty issues we had have. It might take a day or two. Hopefully, I can have a look on this at the weekend.

And sorry, in my attempt to debug this I seem to have pushed a commit to stable which triggered a 0.9.9

Yes, I just saw. We will keep this 0.9.9 version as it contains dozens of translations.

@christianlupus christianlupus self-assigned this Jan 13, 2022
@christianlupus
Copy link
Collaborator

I do not know, if you are relying on a valid Makefile to be present. If yes, you might safely call a make appinfo/app.xml. Unless the file needs rebuilding, make will just skip that step if the file is present.

@nickvergessen
Copy link
Member Author

We can not run make on the translation sync machine.

@nickvergessen
Copy link
Member Author

When the app info files generated, it overwrote any setting regarding NC core compatibility accidentally only made in the cached version appinfo/info.xml and not the template that is used for the generation (.github/actions/deploy/appinfo/info.xml.dist).

Maybe you can set up a github action which cuts out the version line and then compares the 2 files to have an empty diff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants