Skip to content

Commit 7cac54b

Browse files
committed
Remove dependency on posix stuff
1 parent a0274e2 commit 7cac54b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
os: [ubuntu-latest]
12+
os: [windows-latest, ubuntu-latest]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-java@v1

lsif-semanticdb/src/main/java/com/sourcegraph/lsif_semanticdb/LsifWriter.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ public class LsifWriter implements AutoCloseable {
2929
private final AtomicInteger id = new AtomicInteger();
3030

3131
public LsifWriter(LsifSemanticdbOptions options) throws IOException {
32-
this.tmp =
33-
Files.createTempFile(
34-
"lsif-semanticdb",
35-
"dump.lsif",
36-
PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rw-r--r--")));
32+
this.tmp = Files.createTempFile("lsif-semanticdb", "dump.lsif");
33+
this.tmp.toFile().setReadable(true);
34+
this.tmp.toFile().setWritable(true);
3735
this.output =
3836
new LsifOutputStream(options, new BufferedOutputStream(Files.newOutputStream(tmp)));
3937
this.options = options;

0 commit comments

Comments
 (0)