You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm setting up GitHub Actions for a new open-source project for Nav2 users (to be released in coming weeks) and ran into a problem that I'm not sure how to get around. By the way, thank you for this great work! I was shocked at how straight forward your work has made setting up CI. Relative to the complexities we have in Nav2 due to our long build times, complicated simulations, and whatnot on CircleCI, this is a breath of fresh air.
but for my case (e.g. vcs-repo-file-url: "${{ github.workspace }}/.github/deps.repos") and having issues that it fails with:
Invoking: bash -c,vcs import --force --recursive src/ --input /__w/opennav_coverage/opennav_coverage/.github/deps.repos
/usr/bin/bash -c vcs import --force --recursive src/ --input /__w/opennav_coverage/opennav_coverage/.github/deps.repos
/usr/bin/vcs:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import load_entry_point
usage: vcs import [-h] [--input FILE_OR_URL] [--force] [--shallow]
[--recursive] [--retry N] [--skip-existing] [--debug] [-w N]
[--repos]
[path]
vcs import: error: argument --input: can't open '/__w/opennav_coverage/opennav_coverage/.github/deps.repos': [Errno 2] No such file or directory: '/__w/opennav_coverage/opennav_coverage/.github/deps.repos'
Error: The process '/usr/bin/bash' failed with exit code 2
I've verified repeatedly that deps.repos does exist, at that path, without typo.
For now, this is a private repository while its in development with a client before being released publicly. Could that have something to do with it? If so, I'm not worried about it since it'll be fixed shortly. Your documentation though makes me think the default github token should be fine since its all in the same repository as the workflow.
Expected Behavior
CI to find a locally specified path to a file using vcs-repo-file-url.
Actual Behavior
Cannot find it
System (please complete the following information)
I think what you're missing is the actions/checkout step: https://github.com/ros-tooling/action-ros-ci#build-with-a-custom-repos-or-rosinstall-file. If you don't include that step, then your repo isn't cloned into the runner's workspace. action-ros-ci clones the repo so it doesn't need the repo to be checked out beforehand, but you do need it when using vcs-repo-file-url.
And actions/checkout should work fine with your private repo.
Description
I'm setting up GitHub Actions for a new open-source project for Nav2 users (to be released in coming weeks) and ran into a problem that I'm not sure how to get around. By the way, thank you for this great work! I was shocked at how straight forward your work has made setting up CI. Relative to the complexities we have in Nav2 due to our long build times, complicated simulations, and whatnot on CircleCI, this is a breath of fresh air.
I'm using your tests as an example:
action-ros-ci/.github/workflows/test.yml
Line 291 in bc41bd3
but for my case (e.g.
vcs-repo-file-url: "${{ github.workspace }}/.github/deps.repos"
) and having issues that it fails with:I've verified repeatedly that
deps.repos
does exist, at that path, without typo.For now, this is a private repository while its in development with a client before being released publicly. Could that have something to do with it? If so, I'm not worried about it since it'll be fixed shortly. Your documentation though makes me think the default github token should be fine since its all in the same repository as the workflow.
Expected Behavior
CI to find a locally specified path to a file using
vcs-repo-file-url
.Actual Behavior
Cannot find it
System (please complete the following information)
The text was updated successfully, but these errors were encountered: