Skip to content

Commit e5981ea

Browse files
committed
install-from-source: update libssl for alpine
The `validate-install-from-source` workflow is currently failing [1]. According to [2] and [3], the solution is to upgrade the libssl version from 1.1 to 3, as version 1.1 is out of support. Since this version is only supported on Alpine 3.15 and later, we detect the version of Alpine the user is running on and set this dependency version accordingly. 1: https://github.com/git-ecosystem/git-credential-manager/actions/runs/8604126129 2: https://stackoverflow.com/questions/77640298/dockerfile-unable-to-select-packages-linux-alpine 3: https://learn.microsoft.com/en-us/dotnet/core/install/linux-alpine
1 parent fd05865 commit e5981ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/linux/Packaging.Linux/install-from-source.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,16 @@ case "$distribution" in
186186
ensure_dotnet_installed
187187
;;
188188
alpine)
189+
libssl_version=libssl3
190+
191+
if [[ $(echo "$version 3.15" | awk '{print ($1 < $2)}') -ne 0 ]]; then
192+
libssl_version=libssl1.1
193+
fi
194+
189195
$sudo_cmd apk update
190196

191197
# Install dotnet/GCM dependencies.
192-
install_packages apk add "curl git icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib which bash coreutils gcompat"
198+
install_packages apk add "curl git icu-libs krb5-libs libgcc libintl $libssl_version libstdc++ zlib which bash coreutils gcompat"
193199

194200
ensure_dotnet_installed
195201
;;

0 commit comments

Comments
 (0)