Skip to content

Commit

Permalink
follow redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Dec 27, 2023
1 parent 7e231f6 commit 0de5d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages.cr
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class CAPkgs
def fetch_github_releases(org_name, repo_name, dest)
releases_url = "https://api.github.com/repos/#{org_name}/#{repo_name}/releases"
# Use curl here to take advantage of netrc for the token without having to parse it
curl_result = sh("curl", "-s", "--fail-with-body", releases_url)
curl_result = sh("curl", "-L", "-s", "--fail-with-body", releases_url)
raise "Couldn't fetch releases for '#{releases_url}'" unless curl_result.success?

tag_names = Array(GithubRelease).from_json(curl_result.stdout).map { |release| release.tag_name }
Expand Down

0 comments on commit 0de5d4c

Please sign in to comment.