-
-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is far from ideal. This is needed because the repository hosts multiple different projects. The current mechanism to resolve the "latest" release is not compatible with this and may end up selecting a release for a different project. Closes #544.
- Loading branch information
1 parent
23bb2db
commit 175408f
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ local platform = require "mason-core.platform" | |
local _ = require "mason-core.functional" | ||
local github = require "mason-core.managers.github" | ||
local std = require "mason-core.managers.std" | ||
local Optional = require "mason-core.optional" | ||
|
||
local coalesce, when = _.coalesce, _.when | ||
|
||
|
@@ -25,14 +26,16 @@ return Pkg.new { | |
github | ||
.untargz_release_file({ | ||
repo = repo, | ||
version = Optional.of "[email protected]", | ||
asset_file = coalesce( | ||
when(platform.is.mac, format_release_file "tectonic-%s-x86_64-apple-darwin.tar.gz"), | ||
when(platform.is.mac_x64, format_release_file "tectonic-%s-x86_64-apple-darwin.tar.gz"), | ||
when(platform.is.mac_arm64, format_release_file "tectonic-%s-aarch64-apple-darwin.tar.gz"), | ||
when( | ||
platform.is.linux_x64_gnu, | ||
format_release_file "tectonic-%s-x86_64-unknown-linux-gnu.tar.gz" | ||
), | ||
when( | ||
platform.is.linux_x64_musl, | ||
platform.is.linux_x64, | ||
format_release_file "tectonic-%s-x86_64-unknown-linux-musl.tar.gz" | ||
), | ||
when( | ||
|