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

tests: Replace tempdir with tempfile #380

Merged
merged 1 commit into from Jan 30, 2020
Merged

Conversation

robinkrahl
Copy link
Contributor

The tempdir crate, a dev-dependency needed for the tests, has been
deprecated in favor of tempfile. This patch replaces tempdir 0.3.7 with
tempfile 3.1.0.

Note that this patch also removes the prefixes from the temporary
directories: They are no longer required by the API, and they are not
needed for the tests.


I wrote this patch for the Debian package as the deprecated tempdir
crate will not be packaged for Debian. But I think it would make sense
to also replace the dependency upstream.

The tempdir crate, a dev-dependency needed for the tests, has been
deprecated in favor of tempfile.  This patch replaces tempdir 0.3.7 with
tempfile 3.1.0.

Note that this patch also removes the prefixes from the temporary
directories: They are no longer required by the API, and they are not
needed for the tests.
Copy link
Owner

@killercup killercup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

bors r+

bors bot pushed a commit that referenced this pull request Jan 29, 2020
The tempdir crate, a dev-dependency needed for the tests, has been
deprecated in favor of tempfile.  This patch replaces tempdir 0.3.7 with
tempfile 3.1.0.

Note that this patch also removes the prefixes from the temporary
directories: They are no longer required by the API, and they are not
needed for the tests.

----

I wrote this patch for the Debian package as the deprecated tempdir
crate will not be packaged for Debian.  But I think it would make sense
to also replace the dependency upstream.
@ordian
Copy link
Collaborator

ordian commented Jan 29, 2020

(I'm afraid merges by bors are blocked on #377)

@bors
Copy link
Contributor

bors bot commented Jan 29, 2020

Build failed

  • build (windows-latest, stable)

@ordian
Copy link
Collaborator

ordian commented Jan 29, 2020

Unrelated, but blocking CI to pass: this clippy pass is failing
https://github.com/killercup/cargo-edit/runs/415285448#step:7:225

@ordian ordian merged commit a6a19f6 into killercup:master Jan 30, 2020
@robinkrahl
Copy link
Contributor Author

robinkrahl commented Jan 30, 2020 via email

ordian added a commit to ordian/cargo-edit that referenced this pull request Oct 3, 2020
* master: (21 commits)
  Fix fetch for non lowercase crate names (killercup#398)
  Fix all clippy warnings (killercup#422)
  Keep dependencies in sorted order if they were already sorted (killercup#421)
  refacored getting checkout name into a function.
  convert to file_name earlier
  Fix to allow any remote name to be used
  Replace use and suggestion of deprecated `--all` (killercup#407)
  Fix pkgid option descrion for `rm` command (killercup#405)
  Normalise windows-style paths (killercup#403)
  "Working with features" updated (killercup#395)
  release 0.6.0 (killercup#393)
  Add `--workspace` to cargo-upgrade and deprecate `--all` (killercup#392)
  Add `--package <pkgid>` to all commands (killercup#390)
  Fix clippy warnings and some errors on Windows (killercup#382)
  tests: Replace tempdir with tempfile (killercup#380)
  Dependency support for git branches (killercup#379)
  Update help output in readme file (killercup#378)
  bump version to 0.5.0 (killercup#376)
  Add a dependency that was renamed previously (killercup#351)
  Upgrade to reqwest 0.10 (killercup#368)
  ...
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.

None yet

3 participants