feat(extension): subdirectory and version branch support#193
Merged
Conversation
Add support for installing extensions from subdirectories in remote repositories. This enables installation from monorepo structures like github.com/user/repo/path/to/extension.
Remove URL auto-detection in --path flag to provide clear separation between local and remote installation workflows.
Detects common error patterns: repository not found, network errors, authentication failures, SSL issues, ref not found, permissions, timeouts, and DNS errors. Each error includes user-friendly messages and specific suggestions for resolution. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add custom error types (ManifestNotFoundError, ManifestParseError, ManifestValidationError) with helpful context, manifest templates, and documentation links to guide users when manifest loading fails. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add FilePermissionError and DiskFullError types to classifyFileCopyError() for better diagnosis of file operation failures during extension installation.
Change duplicate extension behavior from silent skip to informative error message.
Fixes two configuration issues and refactors to interface-based DI:- - YAML indentation: use IndentSequence(true) for proper list formatting - path normalization: use filepath.Rel for consistent relative paths - replace function variables with interface-based DI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements improvements to the extension installation system, addressing subdirectory support, universal git hosting, version control, and error handling.
github.com/indaco/sley/contrib/extensions/docker-tag-sync--urlfor remote,--pathfor local)repo@v1.0.0), branches (repo@develop), or commits (repo@abc123)Related Issue
Notes for Reviewers