Skip to content

Commit

Permalink
fix namespace overlap for depinject module
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Feb 15, 2024
1 parent e1d9356 commit 8e1ab16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/spawn/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ func SetupModule(logger *slog.Logger, extName string) error {
}

// any file content that has github.com/strangelove-ventures/simapp replace to moduleName

fc.ReplaceAll("github.com/strangelove-ventures/simapp", moduleName)
fc.ReplaceAll("strangelove_ventures.simapp", moduleNameProto)

// TODO: maybe juts a straight up replace all on 'example' here instead?
fc.ReplaceAll("example.module.v1", fmt.Sprintf("%s.module.v1", extName))
fc.ReplaceAll("x/example", fmt.Sprintf("x/%s", extName))
fc.ReplaceAll("example/Params", fmt.Sprintf("%s/Params", extName))
fc.ReplaceAll("example/v1/params", fmt.Sprintf("%s/v1/params", extName))
Expand Down
2 changes: 1 addition & 1 deletion simapp/proto/example/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package strangelove_ventures.simapp.module.v1;
package strangelove_ventures.simapp.example.module.v1;

import "cosmos/app/v1alpha1/module.proto";

Expand Down

0 comments on commit 8e1ab16

Please sign in to comment.