mirror of
https://github.com/actions/toolkit.git
synced 2026-08-07 00:00:18 +02:00
LInt
This commit is contained in:
@@ -21,11 +21,11 @@ export const IS_WINDOWS = process.platform === 'win32'
|
|||||||
/**
|
/**
|
||||||
* Custom implementation of readlink to ensure Windows junctions
|
* Custom implementation of readlink to ensure Windows junctions
|
||||||
* maintain trailing backslash for backward compatibility with Node.js < 24
|
* maintain trailing backslash for backward compatibility with Node.js < 24
|
||||||
*
|
*
|
||||||
* In Node.js 20, Windows junctions (directory symlinks) always returned paths
|
* In Node.js 20, Windows junctions (directory symlinks) always returned paths
|
||||||
* with trailing backslashes. Node.js 24 removed this behavior, which breaks
|
* with trailing backslashes. Node.js 24 removed this behavior, which breaks
|
||||||
* code that relied on this format for path operations.
|
* code that relied on this format for path operations.
|
||||||
*
|
*
|
||||||
* This implementation restores the Node 20 behavior by adding a trailing
|
* This implementation restores the Node 20 behavior by adding a trailing
|
||||||
* backslash to all junction results on Windows.
|
* backslash to all junction results on Windows.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user