8000 Support for custom libraries when using `sketch.yaml` · Issue #2133 · arduino/arduino-cli · GitHub
  • [go: up one dir, main page]

    Skip to content
    Support for custom libraries when using sketch.yaml #2133
    Open
    @dmohns

    Description

    @dmohns

    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-29T01: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 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

      0