cpmbits / cpmbits/cpm

A broken transitive dependency reports failure on the parent bit

Open
#148 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
11
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When a bit depends on another bit that is broken, `cpm` shows an invalid error message:

```
$ cpm install chromos-channels
installing chromos-channels:latest
installing zeromq:4.3.2
CPM: error: bit chromos-channels not found in CPM Hub
```

In this case, it was `zeromq` the bit that wasn't found:

```
2020-06-20 11:24:20.640 info - 127.0.0.1 - - [20/Jun/2020:11:24:20 +0200] "GET /bits/chromos-channels HTTP/1.1" 200 8826
2020-06-20 11:24:20.655 info - 127.0.0.1 - - [20/Jun/2020:11:24:20 +0200] "GET /bits/zeromq/4.3.2 HTTP/1.1" 404 0
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with `cpm install chromos-channels` and inspect how dependency-install errors are reported. Confirm that the message identifies `zeromq` rather than the parent bit `chromos-channels`; no specific source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.