You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
yarn.lock is untracked when setting up a local copy of the project #7765
1. Clone the repo with git clone https://github.com/facebook/create-react-app
2. Run yarn in the root create-react-app folder.
yarn.lock will be generated and is untracked.
Right now yarn.lock is neither checked in nor ignored by .gitignore. So I have to get rid of it somehow (stash/remove) when I commit the code. If I remove it and run yarn again, it'll just generate a new one. This could become a bit frustrating.
Describe the solution you'd like
Checking in yarn.lock as well. I could take care of this if the idea is accepted.
If we were to act on this I would suggest we ignore yarn.lock. By doing so we ensure that our CI installs the latest versions of packages to discover potential issues our users may encounter.
I remember that I had issues running the end-to-end tests because it runs a pristine check somewhere which fails because I had a yarn.lock file. So makes sense to add the file to gitignore then?
Activity
robertvansteen commentedon Oct 3, 2019
Yeah I have always been wondering why it was not added to
.gitignore. @iansu any reason for this?ianschmitz commentedon Oct 5, 2019
If we were to act on this I would suggest we ignore
yarn.lock. By doing so we ensure that our CI installs the latest versions of packages to discover potential issues our users may encounter.robertvansteen commentedon Oct 6, 2019
I remember that I had issues running the end-to-end tests because it runs a pristine check somewhere which fails because I had a
yarn.lockfile. So makes sense to add the file to gitignore then?lukyth commentedon Oct 6, 2019
Seems like it's a consensus that
yarn.lockshould be ignored. I'll open a PR for that then.