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

Do not ignore everything starting with underscore recursively #2758

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

eproxus
Copy link
Contributor

@eproxus eproxus commented Nov 18, 2022

If you have other things in your project structure, e.g. scripts/__main__.py it would be ignored with the simple rule _* ("anything that starts with underscore anywhere").

It's better to use ./_* meaning "anything that starts with underscore in the root folder (e.g. _build).

If you have other things in your project structure, e.g. `scripts/__main__.py` it would be ignored with the simple rule `_*` ("anything that starts with underscore anywhere").

It's better to use `./_*` meaning "anything that starts with underscore in the root folder (e.g. `_build`).
@tsloughter
Copy link
Collaborator

Maybe should just list out the known dirs, _build and _checkouts. Don't think we have any others?

Instead of ignoring everything that starts with an underscore, which is too broad.
@eproxus
Copy link
Contributor Author

eproxus commented Nov 18, 2022

@tsloughter Great suggestion, implemented and pushed (please squash when merging, or let me know and I’ll do it).

@ferd ferd merged commit 80cc5a1 into erlang:main Nov 18, 2022
@ferd
Copy link
Collaborator

ferd commented Nov 18, 2022

and merged, we'll see if other stuff comes up but we should be pretty decent about this now.

@ferd
Copy link
Collaborator

ferd commented Nov 18, 2022

I'm guessing _vendor is gonna show up after updates but that's maybe not a bad thing.

@eproxus
Copy link
Contributor Author

eproxus commented Nov 18, 2022

@ferd I assume the point of _vendor is that it can be checked in? If so, I think a sensible default is to not ignore it.

@eproxus eproxus deleted the patch-1 branch November 18, 2022 19:42
@ferd
Copy link
Collaborator

ferd commented Nov 20, 2022

The vendor/ directory is checked in, and _vendor/ is created as a backup and upgrading censored deps.

@eproxus
Copy link
Contributor Author

eproxus commented Nov 21, 2022

But _vendor should still be ignored then too, right?

@ferd
Copy link
Collaborator

ferd commented Nov 21, 2022

yeah. we could probably ignore it as well to be safe against people checking it in.

@eproxus eproxus mentioned this pull request Nov 22, 2022
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.

3 participants