Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

fix: writeFileSync can not write to temp files on macOS 10.15#4887

Merged
JoshuaKGoldberg merged 1 commit into
palantir:masterfrom
i1skn:fix-catalina
Nov 6, 2019
Merged

fix: writeFileSync can not write to temp files on macOS 10.15#4887
JoshuaKGoldberg merged 1 commit into
palantir:masterfrom
i1skn:fix-catalina

Conversation

@i1skn

@i1skn i1skn commented Nov 5, 2019

Copy link
Copy Markdown
Contributor

PR checklist

Overview of change:

Add path.resolve whenfs.writeFileSync called with temp file path.

Credits for the idea hot to fix the issue goes to @dhleong #4880 (comment)

Is there anything you'd like reviewers to focus on?

Actually tests were failing on macOS Catalina before this fix.

@palantirtech

Copy link
Copy Markdown
Member

Thanks for your interest in palantir/tslint, @i1skn! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks for the surgical fix you two!

FYI @adidahiya

@JoshuaKGoldberg

Copy link
Copy Markdown
Contributor

Build failures in testNext are unrelated; see #4888.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linting with absolute path to tmp file is broken in macOS Catalina

3 participants