Skip to content

Reinstall node if necessary #867

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

Merged
merged 2 commits into from
May 13, 2021
Merged

Reinstall node if necessary #867

merged 2 commits into from
May 13, 2021

Conversation

fdw
Copy link
Contributor

@fdw fdw commented May 13, 2021

If node has been deleted between Spotless installing it and using it
(for example because React's build removes everything from the build
dir), it is not re-installed.

Fixes #863

@fdw
Copy link
Contributor Author

fdw commented May 13, 2021

I couldn't think of a good way to test this, unfortunately. If you have an idea, please share :)

Copy link
Member

@nedtwigg nedtwigg left a comment

Choose a reason for hiding this comment

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

  • Run spotlessApply
  • Did you integration test on your machine to confirm that it fixed your problem?

fdw added 2 commits May 13, 2021 21:17
If node has been deleted between Spotless installing it and using it
(for example because React's `build` removes everything from the `build`
dir), it is not re-installed.

Fixes #863
@fdw
Copy link
Contributor Author

fdw commented May 13, 2021

Run spotlessApply

Oh, I'm so sorry. Fixed now.

Did you integration test on your machine to confirm that it fixed your problem?

Yes, and it works :)

@nedtwigg nedtwigg merged commit cb81514 into diffplug:main May 13, 2021
@nedtwigg
Copy link
Member

Shipped in plugin-maven 2.11.1 and plugin-gradle 5.12.5

@fdw
Copy link
Contributor Author

fdw commented May 14, 2021

That was very quick and nice. Thank you very much!

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.

Prettier dies when directory is removed before spotlessApply
2 participants