Skip to content

Commit bb36583

Browse files
committed
It now works in environments with Digest modules older than 1.17.
Stop using base64_padded_digest and use b64digest instead.
1 parent 339fc9b commit bb36583

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [2.3.1] - 2023-07-18
10+
11+
### Fixed
12+
13+
* mt-dev now works in environments with Digest modules older than 1.17.
14+
915
## [2.3.0] - 2023-07-13
1016

1117
### Added

bin/setup-environment

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ sub handle_recipe {
7575

7676
if (-f $full_path) {
7777
$sha->addfile(IO::File->new($full_path, 'r'));
78-
my $digest = "sha$algorithm-" . $sha->base64_padded_digest;
79-
if ($digest eq $integrity) {
78+
my $digest = $sha->b64digest;
79+
$digest .= ('=' x ((4 - (length($digest) % 4)) % 4));
80+
my $file_integrity = "sha$algorithm-" . $digest;
81+
if ($file_integrity eq $integrity) {
8082
$archives .= " $rel_path";
8183
next;
8284
}

0 commit comments

Comments
 (0)