-
Notifications
You must be signed in to change notification settings - Fork 207
[registry] Bridge v1beta3 Connection wire format at model registration boundary #1018
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
base: master
Are you sure you want to change the base?
Changes from all commits
e490e8e
b210084
8a63e84
62ee427
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,7 +151,7 @@ func ProcessRelationships(relationshipCSVHelper *RelationshipCSVHelper, spreadsh | |
| } | ||
|
|
||
| var rel _rel.RelationshipDefinition | ||
| rel.SchemaVersion = schema.RelationshipSchemaVersionV1Beta2 | ||
| rel.SchemaVersion = schema.RelationshipSchemaVersionV1Beta3 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When updating the relationship schema version to Currently, |
||
| rel.Kind = _rel.RelationshipDefinitionKind(utils.ReplaceSpacesWithHyphenAndConvertToLowercase(relationship.KIND)) | ||
| rel.RelationshipType = utils.ReplaceSpacesWithHyphenAndConvertToLowercase(relationship.Type) | ||
| rel.SubType = utils.ReplaceSpacesWithHyphenAndConvertToLowercase(relationship.SubType) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taking the address of a field of the loop variable
cm(&cm.ModelDB) is a classic Go loop variable capture bug (pre-Go 1.22). Sincecmis reused across iterations, all component definitions indefswill end up pointing to the sameModelDBaddress (the last element's model).To fix this, copy
cm.ModelDBto a local variable inside the loop before taking its address, similar to how it is handled inmodel_filter.go.