Skip to content

Conversation

@gribnoysup
Copy link
Collaborator

During the last mongosh version bump we actually haven't bumped the dependencies to the latest, they got updated in package.json files, but not in the package-lock.json, so correct versions were never installed:

The weirdest part is that even manually trying to install exact version was completely ignored by npm, I'll try to dig a bit more into that because it's a scary thing and very hard to spot when doing package version update, but for not to unblock the release I took the following steps:

  • Manually remove any mention of @mongosh/* and @mongodb-js/devtools-* packages from package-lock.json (but not from package.json)
  • Remove all locally installed dependencies and a "hidden" lockfile so that they don't affect lock update
  • Run install to update the lock

Taking this steps managed to make lockfile to update correctly. Also worth calling out that there are still some mismatched deps left that are not related to the mongosh version bump (and are not getting bunled in prod, so less scary), so I'm keeping them out of this PR, but will follow up with a fix for those too, but as a separate patch.

@gribnoysup gribnoysup merged commit 1558ef5 into main Oct 10, 2024
5 checks passed
@gribnoysup gribnoysup deleted the fix-package-lock-10-10-2024 branch October 10, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants