Skip to content

Move rewrite-go Go module up one directory#7329

Merged
jkschneider merged 1 commit intomainfrom
move-rewrite-go-module
Apr 9, 2026
Merged

Move rewrite-go Go module up one directory#7329
jkschneider merged 1 commit intomainfrom
move-rewrite-go-module

Conversation

@jkschneider
Copy link
Copy Markdown
Member

Summary

  • Move go.mod and all Go source files from rewrite-go/rewrite/ up to rewrite-go/
  • This aligns the directory structure with the module path github.com/openrewrite/rewrite/rewrite-go, allowing the Go module proxy to discover it from repo tags without requiring a replace directive

Motivation

Downstream Go repos (like recipes-go) currently need a replace directive pointing to the local checkout because the go.mod was nested one level deeper than the Go toolchain expects. Once this lands and a new tag is cut, those repos can depend on the published module directly.

Test plan

  • Pure file renames — no code changes, 0 insertions/deletions
  • Verify go build ./rewrite-go/... still works
  • Verify go test ./rewrite-go/... still works

Move go.mod and Go source files from rewrite-go/rewrite/ to
rewrite-go/ so the module path github.com/openrewrite/rewrite/rewrite-go
matches the directory structure. This allows the Go module proxy to
discover the module from repo tags without requiring a replace directive.
@jkschneider jkschneider force-pushed the move-rewrite-go-module branch from f036ed6 to 35580c6 Compare April 9, 2026 13:40
@jkschneider jkschneider merged commit d358a75 into main Apr 9, 2026
2 checks passed
@jkschneider jkschneider deleted the move-rewrite-go-module branch April 9, 2026 14:43
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant