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

How do dependencies work? #56

Open
edwardalee opened this issue Dec 19, 2024 · 1 comment
Open

How do dependencies work? #56

edwardalee opened this issue Dec 19, 2024 · 1 comment
Assignees

Comments

@edwardalee
Copy link

The following Lingo.toml file gives an error when running lingo build:

% lingo build
failed to create dependency manager because of cannot find branch
Cloning mqtt ...%

The file:

[package]
name = "simulation"
version = "0.1.0"

[[app]]
name = "LockToSimulator"
main = "src/LockToSimulator.lf"
target = "C"
platform = "Native"

[app.properties]
fast = false

[dependencies]
mqtt-c = {version=">=0.1", git="https://github.com/lf-pkgs/mqtt-c.git", branch="main"}

This is my best guess for how to import the mqtt-c library (which exists at the address above). The Lingo README file file implies that something like this should work. What am I doing wrong? Can we give an example in the README file that actually works?

@tanneberger
Copy link
Member

It was actually a problem inside lingo: I was only looking for local branches. Therefore branch="origin/main would have worked.

I fixed the problem in #57 by automatically checking for local and remote branches.

Thanks for the report!

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