Skip to content

Commit 9f85d2f

Browse files
committed
fix: strip digest
1 parent f9f4705 commit 9f85d2f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎libexec/dependency-info.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def normalize(name)
5959
# fill output hash
6060
repo_lines.each do |repo_line|
6161
repo_id = repo_line.split('>')[1].split('=')[0]
62+
repo_id = repo_id.sub /-\h{32,}\z/, '' # drop the trailing digest (from GitHub `setup-java`'s `settings.xml`)
6263
repo = case repo_id
6364
when /code.jlab.org-.*/ then 'code.jlab.org'
6465
when nil then REPO_LOCAL

0 commit comments

Comments
 (0)