-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inherit HTTP cache file read/write permissions from cache directory (#…
…13070) The NamedTemporaryFile class used to create HTTP cache files is hard-coded to use file mode 600 (owner read/write only). This makes it impossible to share a pip cache with other users. With this patch, once a cache file is committed, its permissions are updated to inherit the read/write permissions of the cache directory. As before, the owner read/write permissions will always be set to avoid a completely unusable cache. --------- Co-authored-by: Richard Si <sichard26@gmail.com>
- Loading branch information
1 parent
2324303
commit 667acf4
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Files in the network cache will inherit the read/write permissions of pip's cache | ||
directory (in addition to the current user retaining read/write access). This | ||
enables a single cache to be shared among multiple users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters