Skip to content

Commit b1b46cb

Browse files
update macos binaries to remove version
1 parent d321597 commit b1b46cb

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

src/coveralls_functions.jl

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ function get_coveralls_info(platform)
1111
method = :download
1212
)
1313
elseif platform == :macos
14-
# Get the latest version dynamically
1514
arch = Sys.ARCH == :aarch64 ? "aarch64" : "x86_64"
16-
version = get_latest_coveralls_macos_version()
1715
return (
18-
url = "https://github.com/vtjnash/coveralls-macos-binaries/releases/latest/download/coveralls-macos-$version-$arch.tar.gz",
16+
url = "https://github.com/vtjnash/coveralls-macos-binaries/releases/latest/download/coveralls-macos-$arch.tar.gz",
1917
filename = "coveralls",
2018
method = :download,
2119
is_archive = true
@@ -31,30 +29,6 @@ function get_coveralls_info(platform)
3129
end
3230
end
3331

34-
"""
35-
get_latest_coveralls_macos_version()
36-
37-
Get the latest version tag for coveralls-macos-binaries from GitHub API.
38-
"""
39-
function get_latest_coveralls_macos_version()
40-
try
41-
response = HTTP.get("https://api.github.com/repos/vtjnash/coveralls-macos-binaries/releases/latest")
42-
release_data = JSON.parse(String(response.body))
43-
tag_name = release_data["tag_name"]
44-
45-
# Extract version from tag name (e.g., "v0.6.15-build.20250827235919" -> "v0.6.15")
46-
version_match = match(r"^(v\d+\.\d+\.\d+)", tag_name)
47-
if version_match !== nothing
48-
return version_match.captures[1]
49-
else
50-
error("Could not parse version from tag: $tag_name")
51-
end
52-
catch e
53-
@warn "Failed to fetch latest version, falling back to known version: $e"
54-
return "v0.6.15" # Fallback to a known working version
55-
end
56-
end
57-
5832
"""
5933
to_coveralls_json(fcs::Vector{FileCoverage})
6034

0 commit comments

Comments
 (0)