Skip to content

Commit 71bc4e8

Browse files
Copilotabdurriq
andcommitted
Improve maintainability by moving Oryx commit hash to variable at top of script
Co-authored-by: abdurriq <[email protected]>
1 parent 238f9b3 commit 71bc4e8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/oryx/install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
99
UPDATE_RC="${UPDATE_RC:-"true"}"
1010

1111
MICROSOFT_GPG_KEYS_URI="https://packages.microsoft.com/keys/microsoft.asc"
12+
# Pin Oryx to a specific commit to avoid breaking changes
13+
# Last stable commit before ISourceRepo.GetFileSize breaking change (2026-01-13)
14+
# See: https://github.com/microsoft/Oryx/commit/21c559437d69cb43fd9b34f01f68c43ea4bce318
15+
ORYX_COMMIT="0243a804b56d92febdb15cab01f98bbb168baa3b"
1216

1317
set -eu
1418

@@ -177,11 +181,9 @@ GIT_ORYX=/opt/tmp/oryx-repo
177181
mkdir -p ${BUILD_SCRIPT_GENERATOR}
178182
mkdir -p ${ORYX}
179183

180-
# Pin to commit before ISourceRepo.GetFileSize breaking change (2026-01-13)
181-
# See: https://github.com/microsoft/Oryx/commit/21c559437d69cb43fd9b34f01f68c43ea4bce318
182184
git clone https://github.com/microsoft/Oryx $GIT_ORYX
183185
cd $GIT_ORYX
184-
git checkout 0243a804b56d92febdb15cab01f98bbb168baa3b
186+
git checkout $ORYX_COMMIT
185187
cd -
186188

187189
if [[ "${PINNED_SDK_VERSION}" != "" ]]; then

0 commit comments

Comments
 (0)