Closed jerrykingxyz closed 3 days ago
Name | Link |
---|---|
Latest commit | c000bcd5f5095ebece21ecfa789337e94f8f1977 |
Latest deploy log | https://app.netlify.com/sites/rspack/deploys/673bc8ba07f4060008add755 |
why the resolve succeed before and dont get the panic message now
why the resolve succeed before and dont get the panic message now
Before https://github.com/web-infra-dev/rspack/pull/8366, We use rspack_resolver::FileMetadata::from
with std::fs::Metadata
and it does not get the metadata.created()
values.
Currently we will convert std::fs::Metadata
-> rspack_fs::FileMetadata
-> rspack_resolver::FileMetadata
, and this error occurs during the first conversion.
Summary
Some linux musl can not get create time, and it will make resolve failed because of
metadata
return err.This PR will specify a default value of 0 for the creation time when the platform does not support it.
Should fix:
Checklist