Skip to content

local dependencies and libraries? #2818

Closed as duplicate of#1255
Closed as duplicate of#1255
@codewitch-honey-crisis

Description

@codewitch-honey-crisis

Add local library management

Arduino would be easier to use for library implementors, as well as easier to use with source control if two things were possible:

A) Allow for a Libraries folder underneath the sketch/project folder for locally loaded libraries. What this does is make it so library implementors can work on a custom library much more easily because with something like VS Code and Arduino Maker Workshop, or even just using the CLI with VS Code the project will bring the library under the auspices of its file management, meaning saved before compiling (Arduino Maker Workshop) and also the ability to have a newer (dev) version than the one in the shared libraries folder.

B) It would also be nice to have like a {sketch_name}.properties file or something that allows for a depends line.

Both of the above features would also make sharing projects a lot easier, because source control would have all of the necessary information for the person checking out to be able to build the project without a list of instructions for installing libraries.

Current behavior

Currently you have to use the shared Libraries folder, and there's no way for a sketch to specify dependent libraries, complicating source control and library development

Arduino CLI version

1.1.1

Operating system

Windows

Operating system version

Windows 11

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Labels

conclusion: duplicateHas already been submittedtopic: codeRelated to content of the project itselftopic: package-managementRelated to the packaging and managing of the platform/librariestype: enhancementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions