Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

[Bug] fail publishing nuget when there is a nupkg folder #31

Closed
tekix opened this issue May 17, 2020 · 0 comments
Closed

[Bug] fail publishing nuget when there is a nupkg folder #31

tekix opened this issue May 17, 2020 · 0 comments
Assignees

Comments

@tekix
Copy link

tekix commented May 17, 2020

When there is a nupkg folder, the following error occurs.

Error: EISDIR: illegal operation on a directory, unlink 'nupkg'
    at Object.unlinkSync (fs.js:1035:3)
    at /home/runner/work/_actions/brandedoutcast/publish-nuget/v2.5.0/index.js:58:81
    at Array.forEach (<anonymous>)
    at Action._pushPackage (/home/runner/work/_actions/brandedoutcast/publish-nuget/v2.5.0/index.js:58:64)
    at IncomingMessage.<anonymous> (/home/runner/work/_actions/brandedoutcast/publish-nuget/v2.5.0/index.js:109:30)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -21,
  syscall: 'unlink',
  code: 'EISDIR',
  path: 'nupkg'

Error occurs at:
https://github.com/brandedoutcast/publish-nuget/blob/master/index.js#L58

Maybe to skip deleting the folders, or delete the folders by other operation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants