michael-o commented on code in PR #448:
URL: https://github.com/apache/maven-resolver/pull/448#discussion_r1543606216


##########
maven-resolver-generator-gnupg/src/main/java/org/eclipse/aether/generator/gnupg/loaders/GpgConfLoader.java:
##########
@@ -66,13 +66,14 @@ public byte[] loadKeyRingMaterial(RepositorySystemSession 
session) throws IOExce
                 GnupgConfigurationKeys.DEFAULT_KEY_FILE_PATH,
                 GnupgConfigurationKeys.CONFIG_PROP_KEY_FILE_PATH));
         if (!keyPath.isAbsolute()) {
-            keyPath = 
session.getLocalRepository().getBasePath().resolve(keyPath);
+            keyPath =
+                    
Paths.get(System.getProperty("user.home")).resolve(keyPath).toAbsolutePath();
         }
         if (Files.isRegularFile(keyPath)) {
             if (Files.size(keyPath) < MAX_SIZE) {
                 return Files.readAllBytes(keyPath);
             } else {
-                logger.warn("Refusing to load key {}; is larger than 5KB", 
keyPath);
+                logger.warn("Refusing to load file {}; is larger than 64KiB", 
keyPath);

Review Comment:
   The space missing as provided before



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to