Skip to content

GetPlatform called via gRPC does not force to update the indices #1529

Closed
@4ntoine

Description

@4ntoine

Bug Report

Current behavior

Call GetPlatform with all=true on a clean system does not force to update the indices.

Expected behavior

It forces the update (exactly as it's done if calling via command-line core list --all

Environment

  • CLI version (output of arduino-cli version): 0.19.2 commit 6a6f50ae
  • OS and platform: Alpine linux

Additional context

Looking into the source code i can't see any difference except missing instance.CreateAndInit() call.

In my case i do call create + init requests before requesting the subscriptions.

PS. Using custom data path in config file (not sure if it makes a difference)

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftopic: gRPCRelated to the gRPC interfacetype: enhancementProposed improvement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions