Collection requirement file not processed

50 views
Skip to first unread message

cmou...@redhat.com

unread,
Jun 26, 2020, 10:07:27 AM6/26/20
to molecule-users
Hi,

When the following molecule.yml 

---
dependency:
  name: galaxy
  options:
    requirement-files: ../resources/collections.yml

is processed using the command "molecule dependency", then this error is reported

molecule dependency
--> Test matrix

└── default
└── dependency

--> Scenario: 'default'
--> Action: 'dependency'
Skipping, missing the requirements file.
Skipping, missing the requirements file.

The collections.yml file is well defined within the upstream folder

cat molecule/resources/collections.yml 
collections:
  - redhat.jcliff                                       

Best 

Charles



Juanje Ojeda Croissier

unread,
Jun 26, 2020, 11:05:39 AM6/26/20
to cmou...@redhat.com, molecule-users
Hi,

I believe the way to specify the dependencies for your molecule scenario is:

dependency:
  name: galaxy
  options:
    role-file: ../resources/collections.yml

But I'd check with the verbose option to see if the path is correct.

If the dependencies are for the role/collection itself (not just for that molecule scenario), I believe the correct place to put it is at {root_role_directory}/meta/main.yml

I hope it helps.
Cheers.


--
You received this message because you are subscribed to the Google Groups "molecule-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to molecule-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/molecule-users/0b64ac07-0b73-41c3-bcca-886adacd9895n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages