Skip to content

uucore: add chrono to uptime feature #7719

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
Apr 10, 2025

Conversation

cakebaker
Copy link
Contributor

Running cargo test --features=uptime --no-default-features currently leads to an "unresolved import chrono" error:

error[E0432]: unresolved import `chrono`
  --> src/uucore/src/lib/features/uptime.rs:16:5
   |
16 | use chrono::Local;
   |     ^^^^^^ use of unresolved module or unlinked crate `chrono`

This PR fixes this issue by adding chrono to the uptime feature.

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)

@sylvestre sylvestre merged commit 593b141 into uutils:main Apr 10, 2025
69 checks passed
@cakebaker cakebaker deleted the uucore_fix_unresolved_import branch April 10, 2025 16:26
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