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

Fix installation/testing on Debian with OSSP::UUID #2

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ my %WriteMakefileArgs = (
"MIN_PERL_VERSION" => "5.008009",
"NAME" => "Test2::Plugin::UUID",
"PREREQ_PM" => {
"Data::UUID" => "1.148",
"Data::UUID" => "0",
"Test2::API" => "1.302165"
},
"TEST_REQUIRES" => {
Expand All @@ -31,7 +31,7 @@ my %WriteMakefileArgs = (


my %FallbackPrereqs = (
"Data::UUID" => "1.148",
"Data::UUID" => "0",
"Test2::API" => "1.302165",
"Test2::V0" => "0.000124"
);
Expand Down
2 changes: 1 addition & 1 deletion cpanfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requires "Data::UUID" => "1.148";
requires "Data::UUID" => "0";
requires "Test2::API" => "1.302165";
requires "perl" => "5.008009";

Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repository.type = git
[Prereqs]
perl = 5.008009
Test2::API = 1.302165
Data::UUID = 1.148
Data::UUID = 0

[Prereqs / TestRequires]
Test2::V0 = 0.000124
Expand Down
3 changes: 2 additions & 1 deletion lib/Test2/Plugin/UUID.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ use Test2::API qw/test2_add_uuid_via/;
use Data::UUID;
my $UG = Data::UUID->new;

sub gen_uuid() { $UG->create_str() }
# OSSP::UUID (Debian) produces lowercase UUIDs, consistently uppercase.
sub gen_uuid() { uc $UG->create_str() }

sub import {
test2_add_uuid_via(\&gen_uuid);
Expand Down