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

WindowsFileSystem: open files with delete-sharing #6092

Closed

Conversation

laszlocsomor
Copy link
Contributor

Open files using Files.new{Input,Output}Stream
instead of new File{Input,Output}Stream.

The new method opens files with deletion sharing,
the old one does not.

This patch will hopefully fix the class of errors
where Bazel fails to delete a file that's already
open.

Change-Id: I1a841ea6ba644ac09dde4838007ba1ecab46defb

Open files using `Files.new{Input,Output}Stream`
instead of `new File{Input,Output}Stream`.

The new method opens files with deletion sharing,
the old one does not.

This patch will hopefully fix the class of errors
where Bazel fails to delete a file that's already
open.

Change-Id: I1a841ea6ba644ac09dde4838007ba1ecab46defb
@laszlocsomor laszlocsomor self-assigned this Sep 6, 2018
@irengrig irengrig added area-Windows Windows-specific issues and feature requests WIP labels Sep 6, 2018
@bazel-io bazel-io closed this in 1a95502 Sep 7, 2018
@laszlocsomor laszlocsomor deleted the deletion-sharing branch September 7, 2018 14:57
@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windows Windows-specific issues and feature requests cla: yes team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants