-
Notifications
You must be signed in to change notification settings - Fork 33
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
Check manifest #903
Check manifest #903
Conversation
After installation of Test::NoWarnings:
|
That's |
It works now under FreeBSD:
|
It also works to capture a missing file:
|
I made a distribution file (
|
I think one alternative would be to move |
I thought of excluding manifest.t as well. It's certainly an easy way out. But to me it feels a bit like a hack. And I feel we have enough hacks in the build system already. For instance I believe such hacks are the cause for this problem in the first place. I looked into what's going on with this failure. I believe I have a fix that involves removing a hack instead of adding one. And while writing to explain the solution I may have I came across a way to make it better, so I'm looking into that. |
I noticed that |
I thought of that as well. "Best practice" seems to be to exclude MANIFEST.SKIP from the dist file. I'm not entirely sure why but the recommendations I've found are consistent on that point. |
It is probably reasonable to exclude MANIFEST.SKIP. There is already a case when a test script is excluded, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pnax Yeah, exactly. |
@pnax, when I tested it failed when I tried to install an installation package based on this PR. Did you try that? |
I used the following commands:
And it worked (after upgrading Zonemaster::LDNS, otherwise I had failing DNSSEC tests). |
8ee14a1
to
d5628b0
Compare
We need to clean up the zonemaster-ldns directory in CI to stay clear of manifest.t.
With both translator documentation and a unit test for the manifest we shouldn't need the note about including MO files in the manifest anymore.
d5628b0
to
1ffc5fa
Compare
I rebased onto current develop. I believe no other changes are necessary. Please test again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as it should and it will be a help that missing update of MANIFEST/MANIFEST.SKIP is discovered already by Github actions (or Travis).
But what is the purpose of including the manifest.t
in MANIFEST? It has no meaning when the distribution package has been created, because only files in MANIFEST are included. Just as po-files.t
is in MANIFEST.SKIP this file belong there. I agree that the saving would be small, but complexity does not increase. One saving is that Test::NoWarnings
would not have to be installed for cpanm
installations.
I approve anyway.
Context
Fixes #902.
Changes
This PR adds t/manifest.t which runs
make distcheck
.How to test this PR
Make sure we don't interfere with the release process:
Run the unit tests in the source directory:
Run the unit tests in the dist file: