Bump tempfile from 3.26.0 to 3.27.0 in /src by dependabot[bot] · Pull Request #3733 · shadow/shadow
Bumps tempfile from 3.26.0 to 3.27.0.
Changelog
Sourced from tempfile's changelog.
3.27.0
This release adds
TempPath::try_from_pathand deprecatesTempPath::from_path.Prior to this release,
TempPath::from_pathmade no attempts to convert relative paths into absolute paths. The following code would have deleted the wrong file:let tmp_path = TempPath::from_path("foo") std::env::set_current_dir("/some/other/path").unwrap(); drop(tmp_path);Now:
TempPath::from_pathwill attempt to convert relative paths into absolute paths. However, this isn't always possible as we need to callstd::env::current_dir, which can fail. If we fail to convert the relative path to an absolute path, we simply keep the relative path.- The
TempPath::try_from_pathbehaves exactly likeTempPath::from_path, except that it returns an error if we fail to convert a relative path into an absolute path (or if the passed path is empty).Neither function attempt to verify the existence of the file in question.
Thanks to
@meng-xu-csfor reporting this issue.
Commits
5c8fa12chore: release 3.27.0e34e574test: disable uds conflict test on redox772c795test: add CWD guards2632fb9fix: resolve relative paths when constructingTempPath- See full diff in compare view