Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using fix-mismatches to downgrade all, rather than upgrade all #110

Closed
Nantris opened this issue Feb 2, 2023 · 4 comments
Closed

Comments

@Nantris
Copy link

Nantris commented Feb 2, 2023

Description

This would be a big help for times when you have to git bisect and some third-party dependency is the issue. syncpack makes our lives so easy when we're moving forward, but when we have to go backwards it's a rough time.

Suggested Solution

A flag to always go to the lowest used version, rather than the highest, like syncpack fix-mismatches --to-lowest

Help Needed

Pointers to where this code is handled now and where such a feature's code would belong in the repo.

Alternative

Using Yarn's resolutions - but it's tedious to have to leave the command line during bisect.

Also, because we use syncpack in our postinstall step, when it throws an error it stops a command like yarn && yarn start with an error after yarn - which makes it tougher to use.

@JamieMason
Copy link
Owner

Thanks @slapbox, the idea of choosing from various strategies I think would be a good idea. It's quite a big job so might be a while but I'd like to see this too.

@JamieMason
Copy link
Owner

Released in 9.8.4.

Docs: https://jamiemason.github.io/syncpack/config/version-groups#preferversion-string

@Nantris
Copy link
Author

Nantris commented Feb 21, 2023

Wow that was so fast! Thanks @JamieMason!

@JamieMason
Copy link
Owner

You're welcome, let me know if it works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants