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

[Merged by Bors] - Fix cargo audit warns for nix, psutil, time #2699

Closed
wants to merge 1 commit into from

Conversation

michaelsproul
Copy link
Member

Issue Addressed

Fix cargo audit failures on unstable

Closes #2698

Proposed Changes

The main culprit is nix, which is vulnerable for versions below v0.23.0. We can't get by with a straight-forward cargo update because psutil depends on an old version of nix (cf. rust-psutil/rust-psutil#93). Hence I've temporarily forked psutil under the sigp org, where I've included the update to nix v0.23.0.

Additionally, I took the chance to update the time dependency to v0.3, which removed a bunch of stale deps including stdweb which is no longer maintained. Lighthouse only uses the time crate in the notifier to do some pretty printing, and so wasn't affected by any of the breaking changes in v0.3 (changelog here).

@michaelsproul michaelsproul added ready-for-review The code is ready for review low-hanging-fruit Easy to resolve, get it before someone else does! labels Oct 10, 2021
@michaelsproul
Copy link
Member Author

bors r+

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Oct 11, 2021
bors bot pushed a commit that referenced this pull request Oct 11, 2021
## Issue Addressed

Fix `cargo audit` failures on `unstable`

Closes #2698

## Proposed Changes

The main culprit is `nix`, which is vulnerable for versions below v0.23.0. We can't get by with a straight-forward `cargo update` because `psutil` depends on an old version of `nix` (cf. rust-psutil/rust-psutil#93). Hence I've temporarily forked `psutil` under the `sigp` org, where I've included the update to `nix` v0.23.0.

Additionally, I took the chance to update the `time` dependency to v0.3, which removed a bunch of stale deps including `stdweb` which is no longer maintained. Lighthouse only uses the `time` crate in the notifier to do some pretty printing, and so wasn't affected by any of the breaking changes in v0.3 ([changelog here](https://github.com/time-rs/time/blob/main/CHANGELOG.md#030-2021-07-30)).
@bors bors bot changed the title Fix cargo audit warns for nix, psutil, time [Merged by Bors] - Fix cargo audit warns for nix, psutil, time Oct 11, 2021
@bors bors bot closed this Oct 11, 2021
@michaelsproul michaelsproul deleted the audit-fix branch October 11, 2021 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low-hanging-fruit Easy to resolve, get it before someone else does! ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants