Skip to content

Commit bbdcf8e

Browse files
chore(deps): bump tempfile from 3.26.0 to 3.27.0 (#157)
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.26.0 to 3.27.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md">tempfile's changelog</a>.</em></p> <blockquote> <h2>3.27.0</h2> <p>This release adds <code>TempPath::try_from_path</code> and deprecates <code>TempPath::from_path</code>.</p> <p>Prior to this release, <code>TempPath::from_path</code> made no attempts to convert relative paths into absolute paths. The following code would have deleted the wrong file:</p> <pre lang="rust"><code>let tmp_path = TempPath::from_path(&quot;foo&quot;) std::env::set_current_dir(&quot;/some/other/path&quot;).unwrap(); drop(tmp_path); </code></pre> <p>Now:</p> <ol> <li><code>TempPath::from_path</code> will attempt to convert relative paths into absolute paths. However, this isn't always possible as we need to call <code>std::env::current_dir</code>, which can fail. If we fail to convert the relative path to an absolute path, we simply keep the relative path.</li> <li>The <code>TempPath::try_from_path</code> behaves exactly like <code>TempPath::from_path</code>, 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).</li> </ol> <p>Neither function attempt to verify the existence of the file in question.</p> <p>Thanks to <a href="https://github.com/meng-xu-cs"><code>@​meng-xu-cs</code></a> for reporting this issue.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Stebalien/tempfile/commit/5c8fa12eb584931b4f1bccfde87eb72fbfa7dc61"><code>5c8fa12</code></a> chore: release 3.27.0</li> <li><a href="https://github.com/Stebalien/tempfile/commit/e34e5748d66a48073ec8e1e6ba37338eecca4548"><code>e34e574</code></a> test: disable uds conflict test on redox</li> <li><a href="https://github.com/Stebalien/tempfile/commit/772c795a27342089dd0dc48125b82454e75ac38d"><code>772c795</code></a> test: add CWD guards</li> <li><a href="https://github.com/Stebalien/tempfile/commit/2632fb9e9465b86141b5bbe47b07dbf5b7110072"><code>2632fb9</code></a> fix: resolve relative paths when constructing <code>TempPath</code></li> <li>See full diff in <a href="https://github.com/Stebalien/tempfile/compare/v3.26.0...v3.27.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tempfile&package-manager=cargo&previous-version=3.26.0&new-version=3.27.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 3fdc7b7 commit bbdcf8e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ sha2 = "0.10.9"
112112
sqlparser = "0.61.0"
113113

114114
sysinfo = "0.38.0"
115-
tempfile = "3.24.0"
115+
tempfile = "3.27.0"
116116
thiserror = "2.0.18"
117117
tokio = { version = "1.49.0", features = [
118118
"rt",

0 commit comments

Comments
 (0)