Skip to content

Translations (*.mo) files are generated inappropriately in the build process #442

Description

@marc-vanderwal

During release testing of Zonemaster-CLI, I attempted to install the latest develop branch of the module using the following command line on a freshly checked-out Git repo:

perl Makefile.PL
make dist
cpanm --sudo -v Zonemaster-CLI-*.tar.gz

However, doing so causes some of the unit tests related to translations to fail. If forcing the installation, the package gets installed but the *.mo files are missing, meaning that none of the strings are translated into the selected locale.

The workaround is to introduce an additional step:

perl Makefile.PL
make
make dist
cpanm --sudo -v Zonemaster-CLI-*.tar.gz

This is fundamentally a problem with the build process.

By the way, when I implement the workaround, I noticed that the resulting Zonemaster-CLI-*.tar.gz archive contains .mo files, generated from the .po files. It feels wrong to have generated (binary) files inside the archive; I assume that the archive should only contain source files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

T-BugType: Bug in software or error in test case description

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions