-
-
Notifications
You must be signed in to change notification settings - Fork 206
Update .gitignore
to exclude everything except recipe/
and conda-forge.yml
#1413
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
Conversation
Should we add files for other IDEs as well? Or none at all? |
I was going to ask the question. It seems to me, if one is worthwhile adding then we may as well add the others. In the
...in terms of IDEs/editors. |
Btw, I usually add these to |
.vscodce
folder to feedstock .gitignore
file.vscode
folder to feedstock .gitignore
file
8249a38
to
c62ddd8
Compare
Not sure what you want to do with this, but if it's not deemed worthwhile feel free to close. Otherwise, happy to make any changes you'd like... |
My personal policy is to not add those and let users deal with a local non-versioned What do you think @isuruf? |
Same here
Exactly. So, it's better to ask users to add these to their global config IMO. |
I'm a reasonably experienced developer and I didn't have a global git ignore configured so I think you can expect most people don't and in particular, inexperienced developers won't. The default experience they'll have is their editor creating folders which aren't ignored and which their editor will want to automatically commit unless they're careful to unselect the config folder. It's just one more barrier to entry which the core devs don't experience because they already know what a I think letting users deal with their own global config is pretty hostile to inexperienced devs/analysts when there's literally zero cost to making it Just Work for them out of the box AFAICS. |
@isuruf the thing is, we don't want to ask/teach that many people on how to set their global configs! That is why, even though this is not my usual workflow, I think it is a good idea here. |
My point is that either we should add none, or add a reasonably comprehensive list. Anything in between is worthless.
And your statement isn't hostile? How about just adding just the files needed as in, https://stackoverflow.com/a/987162/4768820 ? |
Sorry, that wasn't intended to be hostile towards you so I apologise for the tone of that statement. I work with a lot of inexperienced devs, particularly without much git experience so I'm just interested in making the workflow as easy as possible for them.
I think that's a fair point. For Python you could use the GitHub template: ...but then not every feedstock is a Python repo. My thought was that IDE/editor ignores will be common for all feedstocks. If there are other generally applicable ignores we should add I'm happy to do so, I'm just not sure what they are. |
What do you think about this? Instead of rejecting IDE files in |
I think it would be pretty tricky to whitelist files in a Maybe it could be made to work if it was just the top-level folder which should be (entirely?) auto-generated. If someone did try to add a non-whitelisted file it might be pretty confusing for them though. I wouldn't be confident making that change as I don't think I've got a broad-enough view of all CF development to know what files should be whitelisted. If this doesn't add enough value I'm fine with it being closed. For me, conda-forge/staged-recipes@90e5e59 was the more important change. Since the feedstock |
I was thinking of just
Auto-generated files are added by conda-smithy forcefully anyway. If a user changes the templates, then they'll be shown by git because they are already added to git. |
I can make that change if people think that's better (or feel free to push yourself). I'll leave this open for a bit to let others comment - there's no big rush... |
8368af6
to
b092aa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an interesting approach. Though IIUC we will need to stay vigilant when adding new files to feedstocks that they are properly handled in |
Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
I don't understand the question. Can you clarify? |
Ping on this |
.vscode
folder to feedstock .gitignore
file.gitignore
to exclude everything except recipe/
and conda-forge.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, but otherwise LGTM.
Co-authored-by: Marcel Bargull <mbargull@users.noreply.github.com>
Note that the changes here (specifically I've opened #2327 to document and track this. |
Checklist
news
entry