-
Notifications
You must be signed in to change notification settings - Fork 64
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(core): adjust gitignore to support generation with directory #599
Conversation
Tungsten78
commented
Jan 26, 2023
- include typo fix
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 9dfeec4. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 9 targets
Sent with 💌 from NxCloud. |
@Tungsten78 This may not be needed anymore, since #596 includes a fix that moves the generated obj directory into dist. Can you check if its needed in a new workspace using latest? |
@AgentEnder Assuming I'm checking the right thing it appears to continue as a problem. |
Ah, I forgot about the nuget files. That's my bad. My concern with using a globstar for this stems from projects containing source directories that have subfolders named bin, as is common for nodejs cli tools. A lot of times a node project may have a bin folder at root even... We could instead list out the files that are still generated in these folders automatically perhaps? We could theoretically even just generate a .gitignore within the new dotnet apps roots and list bin / obj, Nx doesn't obey nested gitignores as far as globbing / dependency tracing but it should be fine for this use case since git does obey them. |
I hear you about making too many assumptions when applying ignores at the workspace level. Writing a .gitignore I’m the generated projects might be safest. |
Generally I was trying to avoid the root gitignores since Nx doesn't currently obey them (we'd like to, but it's actually a non trivial performance cost). That said, the remainder of those directories is pretty slim, and Nx trying to read them shouldn't cause any runtime errors so we should be OK to do that now. If you want to close this PR and open another with that approach you can, or you can reuse this one, or if you'd rather I can take a look sometime in the next week or so |
To ensure we're on the same page... We are going to address the aforementioned issue by moving the ignore clauses
Example:
|
Yeah, I think that makes the most sense. It'll move that logic outside of the init generator and into the generate-project util |
1a6cf0d
to
7ed43c8
Compare
- include typo fix
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Full disclaimer: having issues running the test suite on my windows-based machine. Might need to use a mac?
|
Ideally it would "just work" regardless, but for my local dev I use WSL2 on windows. If you get spare time to help track down inconsistent results on base windows, any fixes to that DX would be appreciated |
Most of the test suite works on my Mac. Still have some failures. Also, not having luck with
|
This seems like the likely culprit: nodejs/node-v0.x-archive#6425 |
"use a better operating system". 😂
|
Yeah, it's been a while since I looked at the windows dev experience for the repo. Probably several small things. |
I would expect publish local to work on WSL, Mac, or Linux so if that's failing on those platforms it may be more interesting. It works on Ubuntu and WSL for sure given CI and my local env |
🎉 This PR is included in version 1.19.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |