1
0
Fork 0
toolkit/packages
Zoran Regvart 7932c147a0
Support upload from named pipes (#748)
Named pipes report file size as 0, which leads to reading the whole
content into memory (0 is less than 64K). This adds additional check to
make sure that the passed in path is not a named pipe, and in that case
opts for the create-temp-file-to-gzip code path.

When running on GitHub Actions infrastructure on `windows` node, named
pipes can be created using `mkfifo` from MSYS2. In that case `fs.Stats`s
`isFIFO()` returns `false`, and not `true` as expected. This case is
detected by `process.platform` being `win32` and the passed file having
length of 0.

As a side note, when MSYS2's `mkfifo` is run, a pipe file is created:

```
prw-rw-rw- 1 User None  0 Mar 31 12:58 pipe
```

If `fs.stat` is invoked at this point `ENOENT` error will be thrown. As
soon as the pipe is written to, this pipe file is replaced by two same-
named files:

```
-rw-r--r-- 1 User None  0 Mar 31 13:00 pipe
-rw-r--r-- 1 User None  0 Mar 31 13:00 pipe
```

And at this point `fs.stat` `isFIFO()` returns `false`. Even though the
file acts as a named pipe.
2021-11-29 17:19:02 -05:00
..
artifact Support upload from named pipes (#748) 2021-11-29 17:19:02 -05:00
cache Cache: Increasing client validation to 10GB (#934) 2021-11-19 16:34:33 +05:30
core Full release of actions/core 1.6.0 with oidc behavior (#919) 2021-09-28 12:55:21 -04:00
exec Update @actions/exec to 1.1.0 (#834) 2021-06-07 10:09:34 -04:00
github Fix high sev in github package (#924) 2021-10-15 15:26:30 -04:00
glob we really shouldn't warn on these errors, action author can decide what to do (#837) 2021-06-07 15:31:03 -04:00
io New versions of toolkit packages (#835) 2021-06-07 15:09:34 -04:00
tool-cache Release new version of the tool-cache (#838) 2021-06-07 15:50:05 -04:00