Skip to content

microsoft-coreutils@2026.5.29: Adding Scripts, Remake shims#8110

Open
SiriosDev wants to merge 11 commits into
ScoopInstaller:masterfrom
SiriosDev:rework-ms-cu
Open

microsoft-coreutils@2026.5.29: Adding Scripts, Remake shims#8110
SiriosDev wants to merge 11 commits into
ScoopInstaller:masterfrom
SiriosDev:rework-ms-cu

Conversation

@SiriosDev

@SiriosDev SiriosDev commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Following the raw script included in the original repository, I created a script that creates hard links in bin and cmd, removes the placeholder file, and modifies and runs pwsh-install.ps1 to reference HKCU instead of HKLM, so that UAC is no longer required even for CurrentUser mode. (And Uninstall too of course).

In this way, the shipped “patch” should apply to all $PROFILE, except for legacy versions (>5.0), which are not supported by the original installer

Relates to #8107

  • Use conventional PR title: <manifest-name[@version]|chore>: <general summary of the pull request>
  • I have read the Contributing Guide

@SiriosDev
SiriosDev marked this pull request as draft June 5, 2026 20:36
@SiriosDev
SiriosDev marked this pull request as ready for review June 5, 2026 20:42
Comment thread bucket/microsoft-coreutils.json Outdated
Comment on lines 23 to 24
"cmd/arch.cmd",
"arch"

@z-Fng z-Fng Jun 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to work.

> arch
MZ�$�
'MZ�$�' is not recognized as an internal or external command,
operable program or batch file.

> D:\Scoop\shims\arch.cmd
MZ�$�
'MZ�$�' is not recognized as an internal or external command,
operable program or batch file.

I'd suggest waiting for the next portable release. See: microsoft/coreutils#18

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try rerunning PowerShell or opening another instance directly, otherwise the new $PROFILE is not loaded

@z-Fng z-Fng Jun 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it can only be used in PowerShell, then there's no need to create a shim.

I'd suggest waiting for the next portable release. See: microsoft/coreutils#18

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it can only be used in PowerShell, then there's no need to create a shim.

As far as I understand, only pwsh requires these specific tweaks; cmd shouldn't, assuming I've got it right:
https://github.com/microsoft/coreutils#windows-caveats

@z-Fng z-Fng Jun 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it confusing to create a shim that doesn't actually work? I think there might be a misunderstanding regarding how Scoop shims work. Please refer to:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right, now should work
I thought about shimming the cmd files to follow the script's instructions, but it turns out that's not necessary because the script references the executables directly in the cmd subfolder

@deuteros-gex

Copy link
Copy Markdown
Contributor

Just for your infomartion, the latest build is now available with zip archives.
I think it is time to revise this manifest?
https://github.com/microsoft/coreutils/releases/download/v2026.6.16/coreutils-2026.6.16-x64.zip
https://github.com/microsoft/coreutils/releases/download/v2026.6.16/coreutils-2026.6.16-arm64.zip

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d9e714a7-997d-4301-aeb5-967f12fe1b9d

📥 Commits

Reviewing files that changed from the base of the PR and between 6a788bc and 829a4ba.

📒 Files selected for processing (1)
  • bucket/microsoft-coreutils.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • bucket/microsoft-coreutils.json

Summary by CodeRabbit

  • New Features
    • Updated Microsoft coreutils to 2026.6.16 for both x64 and ARM64.
    • Improved installation behavior, including updated command linking and better setup of generated bin/cmd entries.
  • Bug Fixes
    • Adjusted PowerShell profile registry targeting (now uses the user hive) and made install/uninstall run only when PowerShell is available.
    • Refined command discovery and cleanup during installation.

Walkthrough

The bucket/microsoft-coreutils.json manifest is updated to version 2026.6.16 with new download URLs and SHA-256 hashes for both 64bit and arm64 architectures. The bin entries are restructured from 3-element coreutils.exe-based shim arrays to 2-element bin/<tool>.exe hardlink arrays, and a new PowerShell installer/uninstaller is added to create those hardlinks and optionally configure PowerShell profiles.

Changes

microsoft-coreutils manifest update

Layer / File(s) Summary
Version bump and artifact URLs/hashes
bucket/microsoft-coreutils.json
version is updated from 2026.5.29 to 2026.6.16; url and hash fields for both 64bit and arm64 architectures are replaced with the new build's values.
Bin mapping restructure to hardlink form
bucket/microsoft-coreutils.json
All bin entries switch from ["coreutils.exe", "<tool>", "<tool>"] to ["bin/<tool>.exe", "<tool>"].
Installer/uninstaller PowerShell scripting
bucket/microsoft-coreutils.json
PowerShell logic creates bin/cmd directories, generates hardlinks for all commands listed by coreutils.exe --list, patches pwsh-install.ps1 to swap the registry hive from HKLM to HKCU, and conditionally invokes pwsh-install.ps1 for install and uninstall when pwsh.exe is present.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title mentions 'Adding Scripts, Remake shims' but the main changes involve updating the version from 2026.5.29 to 2026.6.16 and restructuring the bin command mappings, with script updates being secondary. Consider clarifying the title to emphasize the version bump or main structural changes, e.g., 'microsoft-coreutils@2026.6.16: Update scripts and bin structure' or similar.
Description check ❓ Inconclusive The PR description provides context about script modifications and references issue #8107, but lacks specific details about the version update and the significant change from 2026.5.29 to 2026.6.16 mentioned in the raw summary. Enhance the description to explicitly mention the version update, the new bin structure with hardlinks, and clarify why 2026.6.16 is being used despite the title referencing 2026.5.29.
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3cabba7c-8f1f-454b-a9d5-0e605445c757

📥 Commits

Reviewing files that changed from the base of the PR and between a795630 and 6a788bc.

📒 Files selected for processing (1)
  • bucket/microsoft-coreutils.json

Comment thread bucket/microsoft-coreutils.json
Comment thread bucket/microsoft-coreutils.json Outdated
Comment thread bucket/microsoft-coreutils.json Outdated
Comment thread bucket/microsoft-coreutils.json Outdated
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.

3 participants