Skip to content

Pin PowerShell to 7.5.5 on CBL-Mariner 2.0#1619

Merged
mthalman merged 4 commits intomainfrom
copilot/fix-error-installing-powershell-7-6
Mar 20, 2026
Merged

Pin PowerShell to 7.5.5 on CBL-Mariner 2.0#1619
mthalman merged 4 commits intomainfrom
copilot/fix-error-installing-powershell-7-6

Conversation

Copy link
Contributor

Copilot AI commented Mar 19, 2026

PowerShell 7.6 depends on dotnet-runtime-10.0, which was never published to the Mariner 2.0 prod feed, causing image builds to fail at dependency resolution.

Changes

  • src/cbl-mariner/2.0/fpm/amd64/Dockerfile — pin powershellpowershell-7.5.5
  • src/cbl-mariner/2.0/crossdeps/amd64/Dockerfile — pin powershellpowershell-7.5.5
Original prompt

This section details on the original issue you should resolve

<issue_title>Error installing PowerShell 7.6 on Mariner 2.0</issue_title>
<issue_description>```

[2/3] RUN tdnf update -y && tdnf install -y ca-certificates git util-linux wget awk cmake diffutils icu tar zlib-devel glibc-devel kernel-headers lttng-ust-devel python3-pip lldb-devel azure-cli powershell:
29.07 Testing transaction
29.08 Running transaction
29.08 Installing/Updating: libarchive-3.6.1-9.cm2.x86_64
29.11 Removing: libarchive-3.6.1-8.cm2.x86_64
29.23 Loaded plugin: tdnfrepogpgcheck
29.31 [using capability match for 'awk']
29.31 [using capability match for 'awk']
41.13 1. nothing provides dotnet-runtime-10.0 needed by powershell-7.6.0-1.cm.x86_64
41.13 Found 1 problem(s) while resolving
41.13 Error(1301) : Solv general runtime error


The powershell 7.6 package depends on dotnet-runtime-10.0 but 10.0 was never published to prod feed for Mariner 2.0. The Dockerfiles should be changed to use powershell 7.5 instead to work around issue.</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

…runtime-10.0

Co-authored-by: mthalman <15789599+mthalman@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error installing PowerShell 7.6 on Mariner 2.0 Pin PowerShell to 7.5.0 on CBL-Mariner 2.0 Mar 19, 2026
Copilot AI requested a review from mthalman March 19, 2026 16:05
@mthalman mthalman self-requested a review March 19, 2026 16:38
@mthalman
Copy link
Member

@copilot - Can we just do 7.5 instead?

Co-authored-by: mthalman <15789599+mthalman@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 19, 2026

@copilot - Can we just do 7.5 instead?

Done, updated to powershell-7.5 in both Dockerfiles (commit 4fe7936).

Copilot AI changed the title Pin PowerShell to 7.5.0 on CBL-Mariner 2.0 Pin PowerShell to 7.5 on CBL-Mariner 2.0 Mar 19, 2026
@mthalman mthalman marked this pull request as ready for review March 19, 2026 17:45
@mthalman mthalman requested review from a team as code owners March 19, 2026 17:45
@wfurt
Copy link
Member

wfurt commented Mar 19, 2026

do we even still need this? AFAIK mariner is EOL for quite some time....

@mthalman
Copy link
Member

do we even still need this? AFAIK mariner is EOL for quite some time....

The plan is to remove it next month: #1617 (comment)

@mthalman
Copy link
Member

@copilot - change this to install version 7.5.5

Co-authored-by: mthalman <15789599+mthalman@users.noreply.github.com>
@mthalman mthalman enabled auto-merge (squash) March 20, 2026 12:30
auto-merge was automatically disabled March 20, 2026 12:30

Head branch was pushed to by a user without write access

Copy link
Contributor Author

Copilot AI commented Mar 20, 2026

@copilot - change this to install version 7.5.5

Done, updated to powershell-7.5.5 in both Dockerfiles (commit cb8cb08).

Copilot AI changed the title Pin PowerShell to 7.5 on CBL-Mariner 2.0 Pin PowerShell to 7.5.5 on CBL-Mariner 2.0 Mar 20, 2026
@mthalman mthalman enabled auto-merge (squash) March 20, 2026 12:30
Copilot AI requested a review from mthalman March 20, 2026 12:30
@mthalman mthalman disabled auto-merge March 20, 2026 15:25
@mthalman mthalman merged commit 0ad7324 into main Mar 20, 2026
71 of 73 checks passed
@mthalman mthalman deleted the copilot/fix-error-installing-powershell-7-6 branch March 20, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error installing PowerShell 7.6 on Mariner 2.0

5 participants