Documentation about adding local dependencies
It's not documented how you can add local dependencies to be tested. For example, my Cargo.toml
for my Rust project contains:
[dependencies]
scenario_server_lib = { path = "../scenario_server/lib" }
I think in my case I can do something like this in my .gitlab-ci.yml
:
.dependabot-gitlab:
before_script:
- cd /home/dependabot
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/l4010/scenario_server
However it does not work. This use case is also undocumented within this repository.
The following error appears:
[2022-07-29 11:19:04 +0000] ERROR -- Dependency update execution failed with error:
[2022-07-29 11:19:04 +0000] ERROR -- The following path based dependencies could not be retrieved: ../scenario_server/lib/Cargo.toml
Edited by George Koltsov