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

Package not found when using git url in dependency #69

Open
kkettinger opened this issue Jun 15, 2023 · 1 comment
Open

Package not found when using git url in dependency #69

kkettinger opened this issue Jun 15, 2023 · 1 comment

Comments

@kkettinger
Copy link

When using a git url in a dependency, the following error appears:

    Updating git repository `https://github.com/slint-ui/slint`
error: no matching package named `slint` found
location searched: https://github.com/slint-ui/slint?branch=master#ef82edca
required by package `slint-text-rendering-artifact-demo v0.1.0 (/home/devel/repos/slint-text-rendering-artifact-demo)`

The Cargo.toml looks like this:

[package]
name = "slint-text-rendering-artifact-demo"
version = "0.1.0"
edition = "2021"
build = "build.rs"

[dependencies]
slint = { git = "https://github.com/slint-ui/slint", branch = "master" }

[build-dependencies]
slint-build = { git = "https://github.com/slint-ui/slint", branch = "master" }
@kkettinger
Copy link
Author

kkettinger commented Jun 16, 2023

When updating to the latest cargo and git2 version (see #70), cargo bitbake does understand git-urls in the dependency section.
Here an example that now works:

[package]
name = "slint-text-rendering-artifact-demo"
version = "0.1.0"
edition = "2021"
build = "build.rs"

[dependencies]
slint = { git = "https://github.com/slint-ui/slint", rev = "9c21c7b812936953d992704f3ccc6cc081a7fbad", features=["backend-qt", "backend-winit-wayland", "renderer-winit-femtovg", "renderer-winit-software"] }

[build-dependencies]
slint-build = { git = "https://github.com/slint-ui/slint", rev = "9c21c7b812936953d992704f3ccc6cc081a7fbad" }

I noticed that when using branch = "master", the resulting *.bb file does not work correctly, as the bitbake fetcher tries to fetch a wrong revision. If you supply a revision in the Cargo.toml, everything works.

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

1 participant