Skip to content

Commit a5642ca

Browse files
committed
Problem: GitHub tarballs strip out leading v in tags
Solution: ensure we align our expectations
1 parent 948baaa commit a5642ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pgpm/package/git_hub.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def sources
1616
end
1717

1818
def source_url_directory_name
19-
commit = version_git_tag || version_git_commit
19+
# GitHub strips leading `v` from version tags
20+
commit = version_git_tag.gsub(/^v/, "") || version_git_commit
2021
"#{self.class.github_config.name.split("/").last}-#{commit}"
2122
end
2223
end

0 commit comments

Comments
 (0)