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

feat: Write CACHEDIR.TAG file #2803

Merged
merged 3 commits into from
Nov 26, 2024
Merged

Conversation

neilramsay
Copy link
Contributor

@neilramsay neilramsay commented Nov 25, 2024

Write a Cache Directory Tag file "CACHEDIR.TAG" to created directory.

The CACHEDIR.TAG file is used by various tools to mark a directory as cache, so that it can be handled differently. Some backup tools look for this file to exclude the directory. For example, tar includes the --exclude-caches option.

See https://bford.info/cachedir/ for more details.

Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

gaborbernat and others added 2 commits November 19, 2024 10:17
Write a Cache Directory Tag file "CACHEDIR.TAG"
to created directory.

The CACHEDIR.TAG file is used by various tools to mark
a directory as cache, so that it can be handled differently.
Some backup tools look for this file to exclude the directory.
For example, tar includes the --exclude-caches option.

See https://bford.info/cachedir/ for more details.
@gaborbernat gaborbernat force-pushed the main branch 3 times, most recently from fe26af4 to 7c0a39f Compare November 26, 2024 01:03
@gaborbernat gaborbernat merged commit be19526 into pypa:main Nov 26, 2024
1 of 2 checks passed
gaborbernat added a commit that referenced this pull request Nov 26, 2024
@gaborbernat
Copy link
Contributor

Had to revert this because the test suite is failing on Ubuntu, see https://github.com/pypa/virtualenv/actions/runs/12021768700, please reopen it and fix the tests.

@neilramsay
Copy link
Contributor Author

Had to revert this because the test suite is failing on Ubuntu, see https://github.com/pypa/virtualenv/actions/runs/12021768700, please reopen it and fix the tests.

Can do.
When I reopen, how do I invoke the tests?

@neilramsay
Copy link
Contributor Author

Reopened as #2805.
Will fixup there.

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