-
Notifications
You must be signed in to change notification settings - Fork 106
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
question about build errors regarding dependency on smithay #44
Comments
Okay, well, I think I have a temporary hack: I've forked smithay, and pointed the patch line at my own fork without the extra slash (but keeping the patch revision the same) |
Okay, I've find a different workaround, which is to remove Previously, my |
Which version of cargo are you using? Usually the slash works just fine as a work around for this error: rust-lang/cargo#5478 Basically you currently can't patch git-dependencies with the same location. Cargo used to strip the /, but recognized the different URL as a new source. |
The cause of the issue for me is that And the I assume, once smithay 0.4.0 or newer is released and adopted here, there won't be a need for that But in the short term, I have changed my ~/.gitconfig This was what I used to have:
And this is what I have in my ~/.gitconfig that works without having to use
|
Using pushInsteadOf seems to be a best practice for git and SSH, so I'm going to close this as not being a problem specific to this project |
Howdie, thanks so much for sharing this project, I'm excited to see it! <3
I've landed here from the submodule in cosmic-epoch as of https://github.com/pop-os/cosmic-epoch/tree/e6aeb0ae6127ceb485ce3302912597af1d7f7013
That submodule reference points to https://github.com/pop-os/cosmic-comp/tree/d843919502b50237399ca1492ce64aafdb698b08
When I run
just sysext
over in cosmic-epoch orcargo build --release
inside the cosmic-comp submodule, I get this error:I believe this is caused by the double-slash here:
cosmic-comp/Cargo.toml
Line 65 in d843919
But, when I remove the extra slash, I get this new error:
I believe this is caused by that patch line having a different git revision than the one on this line:
cosmic-comp/Cargo.toml
Line 40 in d843919
But, if I remove the patch line, I get:
And then, if I change the dependency version to the (now deleted) patch revision, I get:
I believe the original double-slash problem is caused by my ~/.cargo/config.toml:
However, without that, my SSH setup for GitHub fails completely and everything fails at the crate download/update step
I'm going to see if I can find a combination of versions of dependencies that allows this to compile, but I was wondering if you had any thoughts/suggestions about what else I could try? Cheers!
The text was updated successfully, but these errors were encountered: