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

fix(gatsby-dev-cli): chmod gatsby bin on copy #19985

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

blainekasten
Copy link
Contributor

Description

The issue is that yarn and npm will chmod a bin file on install. when gatsby-dev copies files over, the copied file needs to be chmod'd again.

Also in here, I noticed that gatsby-dev was copying over __mocks__ files, so those were added to the ignore list.

Related Issues

Fixes #18809

@blainekasten blainekasten added type: bug An issue or pull request relating to a bug in Gatsby effort: low labels Dec 6, 2019
@blainekasten blainekasten requested a review from a team as a code owner December 6, 2019 21:01
@blainekasten blainekasten self-assigned this Dec 6, 2019
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

This is great, thank you so much!

It was driving both me and Sid crazy ;)

@@ -147,6 +156,7 @@ async function watch(
/\.git/i,
/\.DS_Store/,
/[/\\]__tests__[/\\]/i,
/[/\\]__mocks__[/\\]/i,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

@pieh pieh added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Dec 6, 2019
@gatsbybot gatsbybot merged commit a4d1126 into master Dec 6, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix/gatsby-dev-bin-permissions branch December 6, 2019 21:33
@sidharthachatterjee
Copy link
Contributor

I can't express just how happy I am to see this fixed! Thank you so much @blainekasten ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mark gatsby binary as an executable in gatsby-dev-cli
4 participants