File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -156,9 +156,13 @@ PATCH_VERSION_ID=$(echo $(dotnet --version) | cut -d . -f 3)
156156
157157PINNED_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
You can’t perform that action at this time.
0 commit comments