-
Notifications
You must be signed in to change notification settings - Fork 56
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
v4.2.1: Mandatory Description missing in implicitly created branches in vspec2x #407
Comments
The implicit branches creation was intended primarily for overlays to avoid the need to add a branch that isn't changed in an overlay just for the sake of it. But it can also be used for cases where the branch does not exist since before and there we need to make up our mind, either make sure it works or create a proper error message like "Implicit branches only allowed in overlays" or so. VSs-tools has recently been refactored so the error is likely produced elsewhere in the latest version - this is what you get currently with an implicit node. Thanks for reporting, we should better look into it. Note to the community: We cannot just add a default value when we create an implicit node as I then think that note will get priority when we apply an overlay. We could discuss if we should instead relieve the requirement to have a description for branches - it is maybe not that useful in all cases.
|
yes, I specifically did not support auto creation of branches. It is not a big deal to support it though if that is what we want. Or to be more specific: Branches are created implicitly but are not prefilled with a description and therefore do not comply to the final model. However, it makes overlays more powerful since you do not need to define any additional things in the overlay if the final node has the right format after applying all overlays. That is something that earlier vss-tools could not support in their design. |
Let us discuss on Tuesday how we want to handle it, i.e. if we want to allow implicit branches also in "final model". |
MoM:
|
Trying to list out the alternatives that I see using the example below.
|
MoM:
|
I have a "broken"
.vspec
file where the nodes are not correctly ordered, e.g. a sub-branch comes before its parent branch.That causes the vss-tools to "implicitly auto-creating branches", which seems to be a really nice feature.
However, since at the time where the branch node is implicitly created there is no description given, subsequent steps error out.
Tested with v4.2.1
This code here is creating a new node, but does not set the required field
description
:https://github.com/COVESA/vss-tools/blob/release/4.2/vspec/__init__.py#L685
Did not yet test with main branch, as I couldn't find that function.
May be obsolete.
The text was updated successfully, but these errors were encountered: