You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/01/05 22:33:25 UTC

[GitHub] [maven-resolver] cstamas commented on a change in pull request #139: [MRESOLVER-230] Make supported bitrot detection checksums extensible

cstamas commented on a change in pull request #139:
URL: https://github.com/apache/maven-resolver/pull/139#discussion_r779181566



##########
File path: maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/ChecksumCalculator.java
##########
@@ -125,7 +131,14 @@ private ChecksumCalculator( File targetFile, Collection<RepositoryLayout.Checksu
             String algo = checksum.getAlgorithm();
             if ( algos.add( algo ) )
             {
-                this.checksums.add( new Checksum( algo ) );
+                try
+                {
+                    this.checksums.add( new Checksum( algo, selector.select( algo ) ) );
+                }
+                catch ( NoSuchAlgorithmException e )
+                {
+                    this.checksums.add( new Checksum( algo, e ) );

Review comment:
       fixed




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org