Skip to content

Allow installing from GIT at specific version #1923

Closed as not planned
Closed as not planned
@FStefanni

Description

@FStefanni

Describe the request

Hi,

currently the arduino-cli lib install --git-url command does not allow to specify a version.
So it could be useful to allow this, by supporting tag, branches and SHA ID's.

Git already support this with the --branch option.

So something as this should be fine:

arduino-cli lib install --git-url https://www.super.url/repo@1.2.3
arduino-cli lib install --git-url https://www.super.url/repo@abcde
arduino-cli lib install --git-url https://www.super.url/repo@featurex-branch

Regards

Describe the current behavior

Currently always the latest commit on master/main is downloaded.

Arduino CLI version

0.27.1

Operating system

Linux

Operating system version

Debian testing

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions