Skip to content

No matching package named lnp-core found when building docker image #40

@harmoniqpunk

Description

@harmoniqpunk

I'm trying to build the docker image but it can not find lnp-core although the dependency paths and name looks fine.

Classify the bug
Put x in the boxes below:

  • [x ] Build issue
  • Test failing
  • Runtime panic
  • Incorrect results
  • Unexpected/undocumented behaviour /

Describe the problem
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Operating system: macOS 11.4, docker engine 20.10.8
  2. Rust compiler version: FROM rust:1.47.0-slim-buster as builder
  3. Did you: docker build -t lnp-node .

Expected behavior

Succesfully build the docker

Logs
Please copy and paste content of rustup default nightly && cargo test --all --all-features -v in a block below right after "console" line:

 => [builder  8/10] WORKDIR /usr/local/src/lnp                                                                                                                               0.0s
 => [builder  9/10] RUN mkdir "/srv/lnp"                                                                                                                                     0.1s
 => ERROR [builder 10/10] RUN cargo install --path . --root "/srv/lnp" --bins --all-features                                                                                26.2s
------
 > [builder 10/10] RUN cargo install --path . --root "/srv/lnp" --bins --all-features:
#20 0.192   Installing lnp_node v0.2.0-beta.1 (/usr/local/src/lnp)
#20 0.240     Updating crates.io index
#20 25.06     Updating git repository `https://github.com/LNP-BP/lnp-core`
#20 26.04 warning: two git dependencies found for `https://github.com/LNP-BP/lnp-core` where one uses `branch = "master"` and the other doesn't; this will break in a future version of Cargo, so please ensure the dependency forms are consistent
#20 26.05 error: failed to compile `lnp_node v0.2.0-beta.1 (/usr/local/src/lnp)`, intermediate artifacts can be found at `/usr/local/src/lnp/target`
#20 26.05 
#20 26.05 Caused by:
#20 26.05   no matching package named `lnp-core` found
#20 26.05   location searched: https://github.com/LNP-BP/lnp-core?branch=master
#20 26.05   required by package `lnp_node v0.2.0-beta.1 (/usr/local/src/lnp)`
------
executor failed running [/bin/sh -c cargo install --path . --root "${BUILDER_DIR}" --bins --all-features]: exit code: 101

Additional context
Add any other context about the problem here.

Other links
Please provide links and references to the affected repositories, code samples etc.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingciContininous integration-relased issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions