Closed nawawi closed 1 month ago
Hi! Thanks for creating this issue. If you already got a fixing proposal, consider submitting your own PR so we can merge it, and you'll appear as contributor as well 🍻
Hi! Thanks for creating this issue. If you already got a fixing proposal, consider submitting your own PR so we can merge it, and you'll appear as contributor as well 🍻
Alright then, already submitted. Thanks.
Fix merged, @nawawi! Thanks again! You can get the fix using the beta version (a build using main branch)
curl -s https://bashunit.typeddevs.com/install.sh | bash -s lib beta
docs: https://bashunit.typeddevs.com/installation#define-custom-tag-and-folder
Summary
bashunit will throw an error when Perl Time::Hires is not available. This requires a minor fix to the clock::now() function.
Current:
Fix:
Current behavior
Can't locate Time/HiRes.pm in @INC (you may need to install the Time::HiRes module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base). BEGIN failed--compilation aborted.
How to reproduce
Expected behavior