Subscribe error when requirements.txt is in a git clone

Open
#374 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
devops

Research direction

Start by tracing the class handling manage_requirements and the requirements.txt resource relationship. Reproduce the catalog failure with requirements.txt supplied by a git clone and manage_requirements => false; done means the catalog compiles without subscribing to an absent File resource.

Written by the indexing model from the issue text.

Description

I cannot set the parameter manage_requirements => false when I expect the file to be cloned from git. The class looks for a file resource named requirements.txt and when it doesn't find it the catalog fails.

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Invalid relationship: Exec[python_requirements/usr/local/src/zookeeper_browser/requirements.txt] { subscribe => File[/usr/local/src/zookeeper_browser/requirements.txt] }, because File[/usr/local/src/zookeeper_browser/requirements.txt] doesn't seem to be in the catalog
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
root@zookeeper-03:~#

Dominant language
Ruby
Stars
196
Forks
372
Avg merge
1d 18m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voxpupuli/puppet-python

All issues in voxpupuli/puppet-python

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.