Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit indexer errors by filtering files without packages
- Loading branch information
Showing
6 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,3 @@ test_release( | |
); | ||
|
||
done_testing; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use Test::More; | ||
use strict; | ||
use warnings; | ||
|
||
use lib 't/lib'; | ||
use MetaCPAN::TestHelpers; | ||
|
||
# Some uploads contain no usable modules. | ||
test_release( | ||
{ | ||
name => 'No-Packages-1.1', | ||
author => 'BORISNAT', | ||
authorized => \1, | ||
first => \1, | ||
|
||
# Without modules it won't get marked as latest. | ||
status => 'cpan', | ||
|
||
provides => [ | ||
|
||
# empty | ||
], | ||
modules => { | ||
|
||
# empty | ||
}, | ||
} | ||
); | ||
|
||
done_testing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: No-Packages | ||
version: 1.1 | ||
abstract: An archive with pm files but no parseable packages | ||
|
||
# Empty hash so Module::Faker won't build its own. | ||
provides: {} | ||
|
||
X_Module_Faker: | ||
cpan_author: BORISNAT | ||
|
||
append: | ||
- | ||
file: NoPackages.pm | ||
content: | | ||
use Something; | ||
# no package statements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters