Skip to content

Commit

Permalink
fix: removed musl as a generic (positive) filter - it is now a part o…
Browse files Browse the repository at this point in the history
…f alpine filter
  • Loading branch information
danielbraun89 authored Apr 14, 2023
1 parent db52afb commit 84f9ee7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nanolayer/installers/gh_release/gh_release_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class PlatformType(Enum):
RELEASE_ID_REGEX_MAP = {
enum: f"(?i)({enum.value})" for enum in LinuxInformationDesk.LinuxReleaseID
}
RELEASE_ID_REGEX_MAP[LinuxInformationDesk.LinuxReleaseID.alpine] = "(?i)(alpine|musl)" # adding musl to alpine "tells"


MISC_REGEX_MAP = {
Expand Down Expand Up @@ -446,11 +447,6 @@ def resolve_asset(
regex=PLATFORM_REGEX_MAP[PlatformType.LINUX],
negative=False,
),
cls.FindAllRegexFilter(
name="prefer musl", # musl is compatible across more distros
regex=".*musl.*",
negative=False,
),
cls.FindAllRegexFilter(
name="prefer own distro", # prefer own exact distro
regex=RELEASE_ID_REGEX_MAP[LinuxInformationDesk.get_release_id()],
Expand Down

0 comments on commit 84f9ee7

Please sign in to comment.