-
Notifications
You must be signed in to change notification settings - Fork 7
cannot pull with rebase: You have unstaged changes. #515
Comments
This happens because of a bad release of @yarnpkg/plugin-compat. There's typically a way to force the version using a yarn resolution but we can also fix it from within monodeploy directly. I'll take a look. For reference, this has happened before: https://discord.com/channels/226791405589233664/654372321225605128/924411017746866236 |
I believe yarn 3.2.3 is bundled with plugin-compat 3.1.5 but I'm guessing you have 3.1.4 installed. You can verify this by running yarn up @yarnpkg/plugin-compat -R |
Similar issues keep happening from time to time with monodeploy updates. I think it should be much clearer in the docs or even in the command output what versions of yarn a certain version of monodeploy is compatible with. |
I have a few ideas to fix this, just need to find some time (and my open source focus right now is on wrapping up the next major version of my syrupy python project -- will come back to solve this once that's done). I'm thinking of offering a yarn plugin version of monodeploy so we have consistent versions of the yarn packages. The version inconsistency is ultimately an issue with how yarn releases updates, so there's an opportunity to fix this upstream as well. |
Monodeploy has been forked under a new name Monoweave. I've copied your issue over and will address it in the monoweave project. |
Describe the bug
The error:
This happens after monodeploy's
yarn install
step, which shouldn't change any files that aren't explicitly committed (changelog, package.json, yarn.lock). However in this instance monodeploy'syarn install
renamed the two typescript patch files in yarn cache:If I run
yarn install
manually the files change back to what they were originally.I believe this happens because of a mismatch between yarn versions. The install that monodeploy runs creates different TS patches to the one I run. This means monodeploy fails on the changed files when it tries to push.
Updating
monodeploy
to the latest version fixes the issue.Please investigate further and figure out what could be done to make the failure easier to understand and fix. Hopefully this could be detected earlier on with a clear error message. Also the publish already happened at this point, so only the commit and push is what fails, which causes an inconsistent state for the package.
Please edit the issue title accordingly (or close).
Environment:
Full(er) log:
The text was updated successfully, but these errors were encountered: