Docker Image used by SWA Github Actions not picking latest Oryx, causing builds to fail for latest global.json SDK

オープン
#1,788 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
docker, github-actions

調査の方向性

アクションのバージョン static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9 から始めて、それが使用する Docker イメージと Oryx リリースを追跡します。Oryx の issue #3017 と PR #2933 を確認し、次に .NET SDK 8.0.422 を要求する global.json を使ってデプロイの再現手順を検証します。アクションが要求された SDK を含む Oryx バージョンを使用し、ビルドが成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

Our repository contains the following global.json:

{
  "sdk": {
    "version": "8.0.422",
    "rollForward": "latestPatch"
  }
}

During deployment, Oryx detected the application and dynamically installed .NET SDK 8.0.420 instead of the SDK requested by global.json (8.0.422).

The subsequent build failed because the .NET SDK resolver correctly requires 8.0.422 (or a later patch in the same feature band) and cannot roll back to 8.0.420.

---Oryx build logs---

Oryx Version: 0.2.20260109.4+7d54dd5970dbbf3ae6bdcf4dee57b07816a392ce, Commit: 7d54dd5970dbbf3ae6bdcf4dee57b07816a392ce, ReleaseTagName: 20260109.4

The docker image used by the SWA GitHub actions is not picking up the latest Orxy version

A clarification has also been sought from https://github.com/microsoft/Oryx/issues/3017 to understand if the issue is to be addressed at SWA GitHub actions or the Oryx release cycle.

To Reproduce
Steps to reproduce the behavior:

  1. Create a .NET 8 application.
  2. Add the following global.json:
{
  "sdk": {
    "version": "8.0.422",
    "rollForward": "latestPatch"
  }
}
  1. Deploy the application to Azure Static Web Apps using the Azure/static-web-apps-deploy GitHub Action.
  2. Perform the deployment before Oryx has been updated to include the requested SDK version.
  3. Observe that Oryx installs .NET SDK 8.0.420, after which the build fails because global.json requires 8.0.422.

Expected behavior
Ideally one of the following:

  1. New GA .NET SDKs once become available in Oryx should also be picked up by the docker image used by the SWA GitHub actions so that repositories can adopt the latest SDK without deployment failures.

The current behavior forces developers to either delay SDK updates, pin to an older SDK, or wait until the updated Oryx image is deployed.

Screenshots
If applicable, add screenshots to help explain your problem.

Device info (if applicable):

  • OS: Ubuntu 24.04.4 LTS
  • Version: static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9
  • OS Type : bullseye
  • Image Type : githubactions

Additional context

  • SDK update appears to already exist in Oryx PR #2933, but it is not yet available in the Oryx version used by Azure Static Web Apps.
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20260109.4+7d54dd5970dbbf3ae6bdcf4dee57b07816a392ce, Commit: 7d54dd5970dbbf3ae6bdcf4dee57b07816a392ce, ReleaseTagName: 20260109.4

Build Operation ID: 656d1080a8dcbcf6
OS Type           : bullseye
Image Type        : githubactions

Primary SDK Storage URL: https://oryx-cdn.microsoft.io/
Backup SDK Storage URL: 
Detecting platforms...
Detected following platforms:
  dotnet: 8.0.26
Version '8.0.26' of platform 'dotnet' is not installed. Generating script to install it...
Detected the following frameworks: blazor


Source directory     : /github/workspace/CareerWeb
Destination directory: /bin/staticsites/47f7c9f1-9f92-42a0-866d-7917613ceddb-swa-oryx/app

Installing platform...

Downloading and extracting 'dotnet' version '8.0.420' to '/tmp/oryx/platforms/dotnet/8.0.420'...
Detected image debian flavor: bullseye.
Binaries download done in 3 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: dotnet...
Checksum verification done in 1 sec(s).

Platform installation done in 8 sec(s).
Running build script snippets...

The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application '--version' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 8.0.422
global.json file: /github/workspace/global.json

Installed SDKs:

Install the [8.0.422] .NET SDK or update [/github/workspace/global.json] to match an installed SDK.

Thank you for taking a look. I understand there may be operational reasons for the delay, but greater visibility into the release cadence—or more informative diagnostics when the requested SDK is unavailable—would significantly improve the developer experience.

主要言語
言語のデータがありません
スター
347
フォーク
68
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/static-web-apps のほかの issue

Azure/static-web-apps の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。