-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Loosen dependency contraints #1963
base: dev
Are you sure you want to change the base?
Conversation
Update Cargo.lock with new constraints. This should allow several crates to update and make it easier for use to update major versions of several dependencies. See also: espanso#1825
There are several stragglers I can add to this PR as well, assuming the tests pass (locally was hanging on |
Great! This looks promising. I merged the clippy fixes and skipped that test it's causing you problems. In my machine took longer than a couple of minutes (4-5?), so probably something is going south when cargo tries to run that specific test. |
I should have mentioned but I am able to recreate |
Oh (click soud) nice! |
Hi! Just as another comment, you can check my pr trying this same steps of updating chrono and the like here #1872 |
Looks like most of the failures were just a clippy lint. Not sure what's up with Windows though. |
Oh damn. I hitted this error many times, and I don't have any idea why it happens. The log says that it can't link the librearies, or it doesn't find the linker (link.exe). I mildly assume that is something related to the C++ code, in which I have totally null experience 😢 |
The
|
cc >= |
@AucaCoyan It looks like @federico-terzi may have used the $ git log --grep gdiplus
commit 04720212e571e7f1e22a4f9587a1bb9fd3d73e3a
Author: Federico Terzi <federico-terzi@users.noreply.github.com>
Date: Fri May 21 22:00:02 2021 +0200
feat(ui): add feature to avoid double linking gdiplus
commit ccb3e11d9329d17583a3d30b1849b9675d11f995
Author: Federico Terzi <federico-terzi@users.noreply.github.com>
Date: Fri May 21 21:59:29 2021 +0200
feat(clipboard): add feature to avoid double linking gdiplus |
It had never occurred to me we could grep the issue in git history. Thank you for that TIL! Great work here! |
Just checking in -- still have this on my mind, but still unclear on how to fix the windows gdiplus linking issues. |
Even prior to this PR, we've known that some dependency is breaking windows if we run To try to flesh this out, I ran the script below, which starts from a working
#!/usr/bin/env bash
set -x
main() {
while read -r dep; do
git reset --hard c25d419d8fd233751dfa6f97d4385afe78febb98
cargo update "${dep}"
git add Cargo.lock
git commit -m "Update ${dep}"
git push --force-with-lease
done < <(cargo update --dry-run |& awk '/Updating/ && /->/ { print $2 }')
}
main "$@" You can see my pages of results at: https://github.com/n8henrie/espanso/actions/workflows/ci.yml Unfortunately it's not immediately obvious how to tie a specific workflow run back to the culprit commit, but some work with the (authenticated) $ gh api --paginate -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/n8henrie/espanso/actions/workflows/ci.yml/runs I'll need to |
Thanks for the thorough explanation! |
Loosen dependency contraints to allow API-compatible dependency updates, update
Cargo.lock accordingly