Skip to content

Comments

fix: extract content subdir at fetch time for module_content handling#43

Open
jeremychoi wants to merge 1 commit intoRedHatProductSecurity:mainfrom
jeremychoi:fix-module-content
Open

fix: extract content subdir at fetch time for module_content handling#43
jeremychoi wants to merge 1 commit intoRedHatProductSecurity:mainfrom
jeremychoi:fix-module-content

Conversation

@jeremychoi
Copy link
Member

Summary

Source handlers now respect the module_content_dirname parameter by extracting only the specified subdirectory instead of storing the entire repository. Fixes marketplace modules with 'path' field (e.g. path: lola-module) failing to install.

Test Plan

  1. add module using --module-content.
    e.g. lola mod add https://github.com/RedHatProductSecurity/secdevai.git --module-content=lola-module
  2. install the module
  3. No actual module is created in .cursor or .claude, etc. (this PR fixes this)

Checklist

  • Tests pass (pytest)
  • Linting passes (ruff check src tests)
  • Type checking passes (ty check)

AI Disclosure

Co-authored-by: claude-4.6-opus-high

Source handlers now respect the module_content_dirname parameter by
extracting only the specified subdirectory instead of storing the
entire repository. Fixes marketplace modules with 'path' field
(e.g. path: lola-module) failing to install.

Co-authored-by: claude-4.6-opus-high
@jeremychoi
Copy link
Member Author

cc @mrbrandao

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.

1 participant