Skip to content
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

[DEP0005] DeprecationWarning: Buffer() is deprecated #42

Closed
jpogran opened this issue Apr 29, 2022 · 2 comments
Closed

[DEP0005] DeprecationWarning: Buffer() is deprecated #42

jpogran opened this issue Apr 29, 2022 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jpogran
Copy link
Contributor

jpogran commented Apr 29, 2022

Hey @BlackDark / @jpogran - I've been tracking an annoying deprecation warning I've been seeing in the https://github.com/hashicorp/setup-terraform GitHub Action recently.

(node:1617) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

This is actually seen in the opening screenshot 😄.

Tracking this back, it's been this change that's cause the message:

Got there!

I wonder if there is an alternative to the proxy-agent package?

Originally posted by @magnetikonline in #11 (comment)

@magnetikonline
Copy link
Contributor

Thanks @jpogran I figure there are two ways forward here:

@magnetikonline
Copy link
Contributor

magnetikonline commented May 2, 2022

Hey @jpogran - was able to deliver a fix here: #43

Basically swapping out the proxy-agent package with the child https-proxy-agent package. Achieves the same result, but removes much of the package chain - including the offending ftp package.

With this in place - can then bump js-releases within https://github.com/hashicorp/setup-terraform as a next/final step 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants