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

remove ctime for musl environment #565

Merged
merged 1 commit into from
Sep 28, 2024
Merged

remove ctime for musl environment #565

merged 1 commit into from
Sep 28, 2024

Conversation

usamoi
Copy link
Contributor

@usamoi usamoi commented Sep 16, 2024

#549 introduces "ctime" linemode but it makes joshuto immediately panic because it calls Metadata::created. For x86_64-unknown-linux-musl target, it always panics.

This PR removes "ctime" temporaily.

You can merge this PR and revert this PR when Metadata::created is supported for musl in Rust.

@kamiyaa
Copy link
Owner

kamiyaa commented Sep 18, 2024

I think what we can have is a default SystemTime value (like default unix epoch time or something) when compiling to musl target

How does that sound?

@usamoi
Copy link
Contributor Author

usamoi commented Sep 18, 2024

How does that sound?

If users notice that all their files were created on 1970-01-01, wouldn't they feel confused?

@kamiyaa kamiyaa merged commit 9728c35 into kamiyaa:main Sep 28, 2024
4 checks passed
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