Skip to content

Commit cb2cb42

Browse files
committed
pining dotnet version as oryx build fails for other version
1 parent 8ba6c27 commit cb2cb42

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/oryx/install.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,13 @@ PATCH_VERSION_ID=$(echo $(dotnet --version) | cut -d . -f 3)
156156

157157
PINNED_SDK_VERSION=""
158158
# Oryx needs to be built with .NET 8
159-
if [[ "${DOTNET_BINARY}" = "" ]] || [[ $MAJOR_VERSION_ID != "8" ]] ; then
159+
if [[ "${DOTNET_BINARY}" = "" ]] || [[ $MAJOR_VERSION_ID != "8" ]] || [[ $MAJOR_VERSION_ID = "8" && ${PATCH_VERSION_ID} -ne "202" ]] ; then
160160
echo "'dotnet 8' was not detected. Attempting to install .NET 8 to build oryx."
161-
install_dotnet_using_apt
161+
# The oryx build fails with .Net 8.0.201, see https://github.com/devcontainers/images/issues/974
162+
# Pinning it to a working version until the upstream Oryx repo updates the dependency
163+
# install_dotnet_using_apt
164+
PINNED_SDK_VERSION="8.0.202"
165+
install_dotnet_with_script ${PINNED_SDK_VERSION}
162166
if ! dotnet --version > /dev/null ; then
163167
echo "(!) Please install Dotnet before installing Oryx"
164168
exit 1

0 commit comments

Comments
 (0)