-
Notifications
You must be signed in to change notification settings - Fork 150
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
lib: fix module linter issues by setting root #400
Conversation
@nodejs-github-bot run ci |
I've run this manually and it seems to resolve the issue ( Needs a test. |
@nodejs-github-bot run CI EDIT: CI was green |
Eslint searches parent directories looking for config files until it finds one with "root: true" in it. This sets "root: true" in CitGM's tmpDir to avoid that. Fixes: nodejs#399
@nodejs-github-bot run CI |
So quick question. Should we be floating fixes for specific oddities in a
package? Eslint is obviously widely adopted, but I'm not sure if like the
precident this sets.
Why did this change? Is it an upstream change? Is it due to the use of
yaml? Is it something that can be fixed upstream? Seems to me that this
would be a big that would affect other projects potentially.
Could we fix this in CI?
I'm not going to be stubborn and keep our CI broken on principle, but want
to ensure that we are not just creating a bandaid... Citgm breaking here
may be a bigger code smell
…On Apr 25, 2017 11:39 AM, "George Adams" ***@***.***> wrote:
***@***.**** approved this pull request.
LGTM
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#400 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAecV_sCKajBQBXdnw55JTx_zTFFo9vZks5rzhPCgaJpZM4NHXfM>
.
|
|
No, I don't think anything changed about that recently. |
So it seems to me like this could be solved in CI by simply not making the temp directory inside of the smoker directory where node is cloned. I'm still very weirded out by things suddenly braking though, and I'm going to see if I can chase it down to a specific change in eslint |
@not-an-aardvark is there a reason for a module not to set We should definitely clone node into |
For a config file at a project root, setting It's possible that |
@not-an-aardvark yeah, that's what I thought, thanks. Agreed that there's no point changing the default now, I was just checking that I wasn't missing some obvious reason for a module like gulp not to set that option before I PR its addition... So PRs to the relevant modules to add this would make sense? I can do that. |
So the problem repos are extending https://github.com/gulpjs/eslint-config-gulp perhaps that should get a root: true? This seems really fragile to me. I'm so bewildered about how this is just popping up. Nothing in any of these packages seems to have changed any time recently |
As much as it bothers me I think we should just land this and cut a release so we can finish the tests |
@MylesBorins it shouldn't be too difficult to just add in the option to the git plugin to clone node into Update: I've made the changes to This is a pain, the good thing is that this only has to be done once per machine, and that it fails immediately, so you can just check after 10s and then rerun. I've run it a bunch of times and I hope that I've cleaned them all up, but I'm not sure there's a good way to check. To fix:
|
@gibfahn would you be able to go in and fix the abi smoker too? |
I think it's fixed now, I set the |
Closing in favour of gulpjs/eslint-config-gulp#12 and the Jenkins script fixes. |
Eslint searches parent directories looking for config files until it
finds one with "root: true" in it. This sets "root: true" in CitGM's
tmpDir to avoid that.
Fixes: #399
Checklist
npm test
passesTo test: