Skip to content

BUILD-13259: Remove copied action links on Windows runners - #371

Merged
hedinasr merged 1 commit into
masterfrom
fix/hnasr/BUILD-13259-windowsActionLinks
Oct 27, 2026
Merged

hedinasr merged 1 commit into
masterfrom
fix/hnasr/BUILD-13259-windowsActionLinks

Conversation

@hedinasr

@hedinasr hedinasr commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

BUILD-13259

On Windows runners, Git Bash's ln -sf copies the directory unless native symlinks are enabled. The "Clean up local action symlinks" step then fails, which fails the whole action after it has configured everything:

rm: cannot remove '.actions/get-build-number': Is a directory

Seen with config-npm@2.5.0 on warp-custom-windows-2022-s in sales-platform#1063. The registry, token and build number were all set before the cleanup failed.

The cleanup now uses rm -rf in config-npm, config-poetry, config-uv, build-npm, build-poetry and build-yarn. On Linux and macOS, rm -rf on a symlink path without a trailing slash removes only the link, not its target.

Test plan

  • sales-platform#1063 Meeting Assistant Frontend (Windows) and Rust (Windows) pass with config-npm pinned to this branch's commit
  • The Linux and macOS legs of the same run still pass, and the action sources in _actions are intact

Git Bash on Windows copies directories for ln -s unless native symlinks are enabled, so the cleanup's rm -f fails with 'Is a directory'. rm -rf removes both a copy and a real symlink, never the symlink target.
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

BUILD-13259

@sonarqubecloud

Copy link
Copy Markdown

@hedinasr
hedinasr marked this pull request as ready for review October 27, 2026 10:46
@hedinasr
hedinasr requested a review from a team as a code owner October 27, 2026 10:46
@hedinasr
hedinasr merged commit b4eede9 into master Oct 27, 2026
21 checks passed
@hedinasr
hedinasr deleted the fix/hnasr/BUILD-13259-windowsActionLinks branch October 27, 2026 10:53
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.

2 participants