Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support for custom libraries when using sketch.yaml #2133

Open
Assignees
Labels
topic: codeRelated to content of the project itself topic: package-managementRelated to the packaging and managing of the platform/libraries type: enhancementProposed improvement
@dmohns

Description

Describe the request

In a project I am currently using different "kind" of libraries.

  • 1. Versioned libraries available in via Arduino Library Manager
  • 2. Non-versioned libraries available via their source code on Github
  • 3. (削除) Non-versioned libraries available via their source code in local subfolder folder of my project (zipped or raw) (削除ここまで)
    (solved by Allow locally installed libraries in sketch profiles. #2930 )

To ease collaboration on the project I would like to use a Sketch Project File and provide a set of dependencies that are confirmed working.

Unfortunately, the "build profiles" feature only seems to support 1. (versioned libraries available in Arduino Library Manager). Scope of this request is to add functionality to supply Github and local folder libraries to the libraries: attribute on sketch.yaml (in some fashion).

Describe the current behavior

Currently, I have been able to compile my project using

arduino-cli compile --fqbn "<FQBN>" --libraries=Library/

However, if I tried to use --profile and --libraries the compile command fails

You cannot use the --libraries flag while compiling with a profile.

Arduino CLI version

arduino-cli Version: nightly-20230329 Commit: b69ed33 Date: 2023年03月29日T01:34:59Z

Operating system

macOS

Operating system version

12.6.3

Additional context

Additional requests

Related

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

topic: codeRelated to content of the project itself topic: package-managementRelated to the packaging and managing of the platform/libraries type: enhancementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /