From 8e1ab16ccb4adce78151333ccd4f5a7a9a106c08 Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Wed, 14 Feb 2024 22:20:07 -0600 Subject: [PATCH] fix namespace overlap for depinject module --- cmd/spawn/module.go | 2 ++ simapp/proto/example/module/v1/module.proto | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/spawn/module.go b/cmd/spawn/module.go index acddb801..68d3b5d0 100644 --- a/cmd/spawn/module.go +++ b/cmd/spawn/module.go @@ -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)) diff --git a/simapp/proto/example/module/v1/module.proto b/simapp/proto/example/module/v1/module.proto index c2d31f14..e7cb0999 100644 --- a/simapp/proto/example/module/v1/module.proto +++ b/simapp/proto/example/module/v1/module.proto @@ -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";