Skip to content

arduino_ci can't handle cases where library manager package names are different than installed directory names #132

Closed
@ianfixes

Description

@ianfixes

Issue Summary

A discrepancy between the library name as it appears in the manager (e.g. Adafruit Motor Shield V2 Library) and its installed location (e.g. Adafruit_Motor_Shield_V2_Library) cause arduino_ci to be unable to find the installed library for unit test compilation purposes.

It looks like even in the package list (https://downloads.arduino.cc/libraries/library_index.json) the output directory isn't something that can be trivially extracted. I'd have to make an assumption based on parsing the website, repository, url, or archiveFileName fields... and this bug is already the result of a bad assumption.

    },
    {
      "name": "Adafruit Motor Shield V2 Library",
      "version": "1.0.6",
      "author": "Adafruit",
      "maintainer": "Adafruit \u003cinfo@adafruit.com\u003e",
      "sentence": "Library for the Adafruit Motor Shield V2 for Arduino. It supports DC motors \u0026 stepper motors with microstepping as well as stacking-support.",
      "paragraph": "Library for the Adafruit Motor Shield V2 for Arduino. It supports DC motors \u0026 stepper motors with microstepping as well as stacking-support.",
      "website": "https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library",
      "category": "Device Control",
      "architectures": [
        "*"
      ],
      "types": [
        "Recommended"
      ],
      "repository": "https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library.git",
      "url": "http://downloads.arduino.cc/libraries/github.com/adafruit/Adafruit_Motor_Shield_V2_Library-1.0.6.zip",
      "archiveFileName": "Adafruit_Motor_Shield_V2_Library-1.0.6.zip",
      "size": 19995,
      "checksum": "SHA-256:b9eb18081cb68a5cc4bf9f35afab732e6111c45b6c1e07566fd92625f0d3b4fe"
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingci scriptsThe test runner scripts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions