Skip to content

How do dependencies work? #56

@edwardalee

Description

@edwardalee

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions