Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFound Error #95

Open
MichelfrancisBustillos opened this issue Jan 5, 2025 · 1 comment
Open

FileNotFound Error #95

MichelfrancisBustillos opened this issue Jan 5, 2025 · 1 comment

Comments

@MichelfrancisBustillos
Copy link

I am recieving the below error when using the Action to perform a sanity test.

File "/home/runner/work/_temp/1dc07489-31d2-4dc6-892a-248dd293d014.py", line 15, in <module>
      with open(os.path.join(directory, COLLECTION_META_FILE)) as galaxy_yml:
FileNotFoundError: [Errno 2] No such file or directory: '.tmp-ansible-collection-checkout/./galaxy.yml'```
@felixfontein
Copy link
Contributor

The error simply says that the repository you asked to run the sanity tests for did not contain a file /galaxy.yml. If that file happens to be in a subdirectory, you need to use the collection-root parameter to tell the action where to find galaxy.yml and the collection in your repository.

If you're talking about https://github.com/MichelfrancisBustillos/ansible_pull (https://github.com/MichelfrancisBustillos/ansible_pull/actions/runs/12623580905/job/35172721912): that repository does not contain a collection, and so you cannot use this action. This repository is for testing Ansible collections, not random collections of Ansible files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants