refactor(hub): update Go module path to match repository URL #11
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.
Refactor: Update Go Module Path to Match VCS Layout (Go Best Practice)
Problem
The Go module path should always match the VCS layout. Since
go.modlives inapps/hub/, the module path must include that to be fetchable and reusable by external projects.Solution
Updated to follow Go's recommended multi-module monorepo pattern:
go.modtogithub.com/formbricks/hub/apps/hubgithub.com/formbricks/hub/apps/hub/internal/...Why This Matters
go.modlocation)go get github.com/formbricks/hub/apps/hubgo.workfor local monorepo developmentFiles Changed
go.mod- Updated module togithub.com/formbricks/hub/apps/hubapps/hubin pathTesting
go build ./cmd/hubgo mod tidycompletes without errorsReferences