fix(boards): emb boards sync fails on a -dev emb

Open Beginner friendly
#358 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
dart
Domain
cli

Research direction

The issue names no file, so start by locating the boards sync command implementation and the existing --ref flag handling in this Dart CLI, then trace where the tag is derived from emb's own version string. Reproduce with a -dev version to hit the HTTP 422 against the commits endpoint, and note that the --ref main escape hatch already works. Done means a -dev version resolves to main by default while the command still reports which ref it used.

Written by the indexing model from the issue text.

Description

emb boards sync fetches the board library at the tag of emb's own version. A -dev build has no tag, so it fails:

✗ Could not check emb-public at v0.7.0-dev (0.2s)
HttpException: HTTP 422 for https://api.github.com/repos/toyota-connected/emb_cli/commits/v0.7.0-dev
If this emb is newer than the published tag, pass an existing ref: emb boards sync --ref main

(run)

The workflow emb init flatpak writes installs emb from git when emb is unreleased, so this is the emb such a workflow has between releases. A -dev version could default to main, the branch it was built from, and still name the ref it used.

Dominant language
Dart
Stars
15
Forks
6
Avg merge
6h 44m
Merged PRs (30d)
60

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from toyota-connected/emb_cli

All issues in toyota-connected/emb_cli

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.