Skip to content

Commit

Permalink
Directly use Digest::SHA instead of Digest
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Oct 22, 2020
1 parent 8e75cf0 commit 0371f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/Helm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ package Build::Helm;
use strict;

use Build::SimpleJSON;
use Digest::SHA;

eval { require YAML::XS; $YAML::XS::LoadBlessed = 0; };
*YAML::XS::LoadFile = sub {die("YAML::XS is not available\n")} unless defined &YAML::XS::LoadFile;
Expand Down Expand Up @@ -120,10 +121,9 @@ sub show {
$helminfo->{'disturl'} = $disturl if $disturl;
$helminfo->{'buildtime'} = time();
if ($chart) {
require Digest;
$helminfo->{'chart'} = $chart;
$helminfo->{'chart'} =~ s/.*\///;
my $ctx = Digest->new("SHA-256");
my $ctx = Digest::SHA->new(256);
my $cfd;
die("$chart: $!\n") unless open($cfd, '<', $chart);
my @s = stat($cfd);
Expand Down

0 comments on commit 0371f04

Please sign in to comment.