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

local dependencies and libraries? #2818

Closed
3 tasks done
codewitch-honey-crisis opened this issue Jan 20, 2025 · 1 comment
Closed
3 tasks done

local dependencies and libraries? #2818

codewitch-honey-crisis opened this issue Jan 20, 2025 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself topic: package-management Related to the packaging and managing of the platform/libraries type: enhancement Proposed improvement

Comments

@codewitch-honey-crisis
Copy link

codewitch-honey-crisis commented Jan 20, 2025

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
@codewitch-honey-crisis codewitch-honey-crisis added the type: enhancement Proposed improvement label Jan 20, 2025
@per1234 per1234 self-assigned this Jan 20, 2025
@per1234 per1234 added topic: code Related to content of the project itself topic: package-management Related to the packaging and managing of the platform/libraries labels Jan 20, 2025
@per1234
Copy link
Contributor

per1234 commented Jan 20, 2025

Hi @codewitch-honey-crisis. Thanks for your suggestions.

Allow for a Libraries folder underneath the sketch/project folder for locally loaded libraries

We are already tracking this feature request at #1255

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

You'll be glad to learn that Arduino CLI already has this feature:

https://arduino.github.io/arduino-cli/latest/sketch-project-file/#build-profiles

@per1234 per1234 closed this as completed Jan 20, 2025
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself topic: package-management Related to the packaging and managing of the platform/libraries type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants