Git worktrees support #1348
Unanswered
MatejBransky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, first of all, I'd like to thank you 🙏 for this unique tool, which has been incredibly helpful in publishing our packages. Really great work! 👏
However, I've recently switched to using Git worktrees in our Nx monorepo, and I've encountered a strange problem.
When I try to commit changes in one worktree that are unrelated to the published (versioned) packages, the precommit hook (Husky) calls
pnpm changeset status --since=main
, and it fails each time with a message saying there's a change without a changelog and that I need to runpnpm changeset add
orpnpm changeset add --empty
.Even though this can't be correct validation, as I haven't changed anything in the published code, I tried both commands, and it still fails every time, even with added changelogs.
I tried to reproduce this in a regular clone of the repository without Git worktrees, and in that environment, the validation/check passed without any issues, correctly identifying that there was no change in the published code.
Does Changeset officially support Git worktrees, or is this something that the development team hasn't worked on yet?
Thanks in advance for any related suggestions, ideas, or help.
Beta Was this translation helpful? Give feedback.
All reactions