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

Option to skip incompatible dependency updates #3

Open
lukemovement opened this issue Feb 12, 2024 · 3 comments
Open

Option to skip incompatible dependency updates #3

lukemovement opened this issue Feb 12, 2024 · 3 comments

Comments

@lukemovement
Copy link

Would it be possible to have an option to skip dependencies that cause issues? I want to preform a general update to my dependencies and find that I am regularly having to restart the process, after appending the dependency in question to the excluded list, due to that dependency failing the tests.

@debuglevel
Copy link

debuglevel commented Apr 13, 2024

That would be nice. Something like a "do what is possible by retrying the other packages until you really cannot achieve anything more"-option.

@pilotpirxie
Copy link
Owner

pilotpirxie commented Apr 13, 2024

Hi, great idea! I guess it would allow developers to update "to the latest possible dependency state" within the same codebase. How exactly do you see this working from the DX perspective? If an update causes problems and fails the tests, should we roll back to the previous stable version of that dependency and not try to update it again forever? This would be the simplest approach.

Alternatively, we could temporarily skip the problematic update, update other dependencies first, and then try again to update the failing one. However, from my experience, this might only help with a few updates and can make the process much longer (plenty of install and test runs).

I would go with the first option because it's simpler, more intuitive to understand how it works and likely to cause fewer issues. Let me know what you think :)

@debuglevel
Copy link

Hi, great idea! I guess it would allow developers to update "to the latest possible dependency state" within the same codebase. How exactly do you see this working from the DX perspective? If an update causes problems and fails the tests, should we roll back to the previous stable version of that dependency and not try to update it again forever? This would be the simplest approach.

Alternatively, we could temporarily skip the problematic update, update other dependencies first, and then try again to update the failing one. However, from my experience, this might only help with a few updates and can make the process much longer (plenty of install and test runs).

I thought about that too.
But to be honest: Right now I'm just adding those packages to --exclude (which is basically the first option 😀) and hope my future self will figure out what to do with them.

Would it be useful if a --exclude-file is used by default and those packages are written into it? This way a subsequent run (if something crashes or I hit CTRL+C) would not try these packages again -- and there would be already a list of packages which require some manual investigation.

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

No branches or pull requests

3 participants