-
Notifications
You must be signed in to change notification settings - Fork 4
fix: ensure replaced modules are required in go.mod during build #119
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
Open
andypost
wants to merge
5
commits into
launchrctl:main
Choose a base branch
from
andypost:87-fix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
- Add CLAUDE.md with project overview and key commands for AI assistance - Create docs/architecture/ with detailed architectural analysis: * ARCHITECTURAL_PATTERNS.md: 16 design patterns, anti-patterns, and 15 improvement suggestions * LOGGING_ARCHITECTURE.md: Analysis of sophisticated dual logging system (Log() vs Term()) * PLUGIN_SYSTEM.md: Complete plugin architecture guide with examples * SERVICE_SYSTEM.md: Service-oriented design and dependency injection documentation - Add comprehensive DEVELOPER_GUIDELINES.md covering: * Code style and conventions * Architecture guidelines and best practices * Logging guidelines for dual system usage * Plugin and service development guides * Testing, error handling, and performance considerations - Update docs/README.md with improved organization and navigation Total: 1,915 lines of comprehensive documentation covering system architecture, development practices, and contribution guidelines. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Fix plugin download logic to properly distinguish between exact matches and subpaths - Add two-phase approach: skip subpaths, handle exact matches as replaced modules - Ensure replaced modules (both core and plugins) are required in go.mod with placeholder versions The key fix changes the condition from `strings.HasPrefix(p.Path, repl)` to `p.Path \!= repl && strings.HasPrefix(p.Path, repl)` to avoid incorrectly skipping plugins that exactly match replaced module paths. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
|
@andypost can you please rebase onto the latest main? The change for better documented replace is a good thing, and I don't want to dump this code. |
andypost
commented
Aug 15, 2025
|
|
||
| // ensureModuleRequired adds a module to go.mod if it's not already there or if it's replaced. | ||
| // It uses a placeholder version for replaced modules. | ||
| func (env *buildEnvironment) ensureModuleRequired(ctx context.Context, modulePath string, modReplace map[string]string) error { |
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.
this method fails on rebase, let's get docs PR #118 in and then fix it
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.
When using the --replace flag, the build process was skipping go get for replaced modules but not adding them as requirements, causing Go compilation errors. This fix ensures replaced modules are properly required using go mod edit -require with placeholder versions.
Fixes #87
🤖 Generated with Claude Code