Skip to content

Commit

Permalink
fix: Also prioritize version separately when finding download url
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejsil committed Jan 10, 2025
1 parent 7ac3a52 commit 2fb2a50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Package.zig
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ pub fn fromGithub(options: struct {
.target = options.target,
.extra_strings = &.{
name,
version,
latest_release.tag_name,

// Pick `sccache-v0.8.1` over `sccache-dist-v0.8.1`
try std.fmt.allocPrint(tmp_arena, "{s}-{s}", .{ name, version }),
Expand Down

0 comments on commit 2fb2a50

Please sign in to comment.