Skip to content

Import components when seeding the -edit file.#11

Merged
gouttegd merged 1 commit intomainfrom
fix-managed-components-upon-seeding
Apr 19, 2026
Merged

Import components when seeding the -edit file.#11
gouttegd merged 1 commit intomainfrom
fix-managed-components-upon-seeding

Conversation

@gouttegd
Copy link
Copy Markdown
Collaborator

When seeding a new repository, if the ODK is configured to manage import declarations, then we should generate import declarations not only for the import modules and the patterns-derived definitions, but also for the components. This is what this PR does.

Without that, the ODK behaves inconsistently in that it will properly inject all the import declarations (for import modules, components, and patterns-derived definitions) when a repository is updated, but will not inject the import declarations for components when the repository is seeded for the first time.

Addresses INCATools/ontology-development-kit#1331 (this comment).

When seeding a new repository, if the ODK is configured to manage import
declarations, then we shoud generate import declarations not only for
the import modules and the patterns-derived definitions, but also for
the components. This is what we do here.
@gouttegd gouttegd self-assigned this Apr 18, 2026
@gouttegd gouttegd requested a review from matentzn April 18, 2026 22:07
Copy link
Copy Markdown

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues, looks great!

@gouttegd gouttegd merged commit 0f5eb59 into main Apr 19, 2026
7 checks passed
@gouttegd gouttegd deleted the fix-managed-components-upon-seeding branch April 19, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants