Open KVSRoyal opened 7 months ago
Yes, same issue here. Thanks for the tip regarding the .gitignore
🎉
We don't use .nx/ in the repo this issue was discovered on, so not sure where it's coming from
The most likely candidate is that it's coming from Lernas dependencies.
I was able to workaround this on our pipeline by adding .nx/ to our .gitignore.
I think this is probably the best course of action all round as that directory is considered temporary for containing local cache data for nx. Another option would be to try setting the lerna.json property useNx: false
and see if it prevents creation of the directory.
Not sure there is anything actionable here for auto?
Describe the bug
I am unable to find any mentions of
nx
in this repo (the private repo this is failing on doesn't usenx
), but for some reason, a.nx/
folder is being added when I useyarn auto shipit -vv
on ourmaster
branch, which runs the all-contributors plugin. As far as I can tell, it's not coming from our end, because we don't usenx
AND we rungit reset --hard
right before callingauto
.Re: this discussion, when working with
nx
>= 17, the.nx/
folder has been moved fromnode_modules/.cache
to the workspace root. This is causingchangedFiles
in the code below to be true, which makes the plugin think that the README and .all-contributorsrc have been updated. The plugin tries to commit these files and errors out because those files actually have not changed.https://github.com/intuit/auto/blob/335fadb33fc1b661faa2a82a1d992b0e81036a74/plugins/all-contributors/src/index.ts#L360-L366
Here is the error shown with `-vv`
``` The following paths are ignored by one of your .gitignore files: fastlane/README.md hint: Use -f if you really want to add them. hint: Turn this message off by running hint: "git config advice.addIgnoredFile false" fatal: pathspec '**/.all-contributorsrc' did not match any files On branch master Untracked files: (use "git addTo Reproduce
I will try to reproduce this with a small repo. TBD.
Expected behavior
I expect
auto
to:shipit
is called onmaster
Environment information:
Additional Context
.nx/
to our.gitignore
..nx/
in the repo this issue was discovered on, so not sure where it's coming frommaster
but not for other branches. I didn't testnext