Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix deprecation warning about fs.rmdirSync(path, { recursive: true }) #1254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

jeffwidman
Copy link
Member

Logs from running this action
(example):

(node:1631) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)

Relevant docs: https://nodejs.org/api/fs.html#fsrmdirsyncpath-options

This deprecation landed in Node 16.

@jeffwidman jeffwidman requested a review from a team as a code owner July 3, 2024 21:43
@jeffwidman jeffwidman force-pushed the fix-node-16-rmsync-deprecation-warning branch 2 times, most recently from 25655e7 to 5043305 Compare July 8, 2024 17:55
Copy link
Member

@Nishnha Nishnha left a comment

Choose a reason for hiding this comment

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

Thanks!

Logs from running this action
([example](https://github.com/github/dependabot-action/actions/runs/9784790222/job/27016465395#step:3:155)):
```
(node:1631) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
```

Relevant docs: https://nodejs.org/api/fs.html#fsrmdirsyncpath-options

This deprecation landed in Node 16.
@jeffwidman jeffwidman force-pushed the fix-node-16-rmsync-deprecation-warning branch from 5043305 to ed57b42 Compare July 11, 2024 15:50
@jeffwidman jeffwidman merged commit 0d7ca16 into main Jul 11, 2024
9 checks passed
@jeffwidman jeffwidman deleted the fix-node-16-rmsync-deprecation-warning branch July 11, 2024 15:53
@jeffwidman
Copy link
Member Author

I manually ran a Dependabot job and confirmed that the deprecation warning is now gone from the logs. 🎉

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