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

(v3) Multiple references to a required project from different components is NOT possible #902

Open
dalehenrich opened this issue Jul 19, 2023 · 0 comments
Assignees
Labels
Component Rework enhancement New feature or request

Comments

@dalehenrich
Copy link
Member

In the Mole project, the required project Buoy is referenced from two components:

  1. Deployment component
  2. Tests component
    and the only way to be able to make this work is to create two separate project specs which results in two separate clones for the Buoy projects, not to mention to separate projects loaded into the image ...

The workaround is to use conditional attributes (see RowanSample9:spec_0066 for an example) ... but expecting all projects to use the same set of non-conflicting attributes has never been a long term solution to the problem....

At the moment, it seems that something like the following will make it possible to customize the project reference spec at the site of the reference:

RwSimpleProjectLoadComponentV2 {
	#name : 'Tests',
	#condition : 'common',
	#projectNames : [
		'Buoy' : {
                     'components' : [ 'Tests' ],
                     'customConditionalAttributes' : [ 'blue' [
         }
	],
	#componentNames : [
		'Deployment'
	],
	#packageNames : [
		'Mole-Tests'
	],
	#comment : ''
}

Where the project ref is a dictionary of spec field values: components and customConditionalAttributes. These two fields look like the only real candidates at this writing.

When this change is applied, it will no longer be desirable to pass along customConditionalAttributes when required projects are loaded ... although we'll probably need to arrange to keep it around to maintain compatibility with v2 project structures...

@dalehenrich dalehenrich added the enhancement New feature or request label Jul 19, 2023
@dalehenrich dalehenrich self-assigned this Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component Rework enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant