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

Fails to build due to "Unable to update smithay/client-toolkit" #81

Closed
lufog opened this issue Oct 9, 2023 · 0 comments
Closed

Fails to build due to "Unable to update smithay/client-toolkit" #81

lufog opened this issue Oct 9, 2023 · 0 comments

Comments

@lufog
Copy link

lufog commented Oct 9, 2023

When I try to build cosmic-settings I get:

[lufog@arch-pc cosmic-settings]$ cargo build
warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
    Updating git repository `https://github.com/smithay/client-toolkit//`
warning: spurious network error (3 tries remaining): failed to receive HTTP 200 response: got 404; class=Net (12)
warning: spurious network error (2 tries remaining): failed to receive HTTP 200 response: got 404; class=Net (12)
warning: spurious network error (1 tries remaining): failed to receive HTTP 200 response: got 404; class=Net (12)
error: failed to load source for dependency `smithay-client-toolkit`

Caused by:
  Unable to update https://github.com/smithay/client-toolkit//?rev=f49df45#f49df457

Caused by:
  failed to fetch into: /home/lufog/.cargo/git/db/_empty-f31853f5765173d8

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  failed to receive HTTP 200 response: got 404; class=Net (12)

If I replace

[patch."https://github.com/Smithay/client-toolkit"]
sctk = { git = "https://github.com/smithay/client-toolkit//", package = "smithay-client-toolkit", rev = "f49df45"}

with

patch."https://github.com/Smithay/client-toolkit/1"]
sctk = { git = "https://github.com/smithay/client-toolkit/", package = "smithay-client-toolkit", rev = "f49df45"}

then everything builds without errors.

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

2 participants