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

chore: Replace atty with std::io::IsTerminal #231

Merged

Conversation

joonas
Copy link
Member

@joonas joonas commented Jan 8, 2024

Feature or Problem

As best as I can tell, atty is unmaintained, which is unfortunate because it has an outstanding security vulnerability (RUSTSEC-2021-0145 / GHSA-g98v-hv3f-hcfr).

Fortunately, Rust 1.70.0 shipped native functionality to replace what atty was providing.

I might've missed it, since I don't believe we have a defined msrv, I think expecting Rust 1.70.0 for this functionality seems fair.

If this is a bad assumption or we absolutely insist on supporting Hermit, we should at least consider switching from atty to is-terminal, which is a drop-in replacement for atty but maintained.

Related Issues

Release Information

Consumer Impact

Testing

Unit Test(s)

Acceptance or Integration

Manual Verification

@joonas joonas force-pushed the joonas/replace-atty-with-stdlib branch from 615ad94 to 70f2752 Compare January 8, 2024 23:14
@joonas
Copy link
Member Author

joonas commented Jan 9, 2024

not entirely sure about that failed test, is it known to be flaky or is it something I should look into? @connorsmith256 took care of it for me 💚

Copy link
Contributor

@thomastaylor312 thomastaylor312 left a comment

Choose a reason for hiding this comment

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

Yep, we've been doing this in other projects so it is about time we did it here. Thanks @joonas!

@thomastaylor312 thomastaylor312 merged commit 0686159 into wasmCloud:main Jan 9, 2024
5 checks passed
@joonas joonas deleted the joonas/replace-atty-with-stdlib branch January 10, 2024 05:02
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