Skip to content

Move directory creation check to WriteSpec from cdi.New(sp)#104

Merged
sgopinath1 merged 1 commit intoROCm:mainfrom
shiv-tyagi:fix-writespec
Feb 23, 2026
Merged

Move directory creation check to WriteSpec from cdi.New(sp)#104
sgopinath1 merged 1 commit intoROCm:mainfrom
shiv-tyagi:fix-writespec

Conversation

@shiv-tyagi
Copy link
Member

This moves the directory creation logic before writing the spec to WriteSpec method. We should not ensure directory as soon as the object is created.

I have added relevant tests to ensure the correct functionality.

Copy link
Collaborator

@sgopinath1 sgopinath1 left a comment

Choose a reason for hiding this comment

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

LGTM

@sgopinath1 sgopinath1 merged commit be74947 into ROCm:main Feb 23, 2026
3 checks passed
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