Skip to content

Commit

Permalink
refactor: move common mod
Browse files Browse the repository at this point in the history
Signed-off-by: rogerogers <[email protected]>
  • Loading branch information
rogerogers committed Jan 5, 2024
1 parent 7b86856 commit a4f84e2
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gomall/app/checkout/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
replace github.com/apache/thrift => github.com/apache/thrift v0.13.0

require (
github.com/cloudwego/biz-demo/gomall/app/common v0.0.0-00010101000000-000000000000
github.com/cloudwego/biz-demo/gomall/common v0.0.0-00010101000000-000000000000
github.com/cloudwego/fastpb v0.0.4
github.com/cloudwego/kitex v0.8.0
github.com/joho/godotenv v1.5.1
Expand Down Expand Up @@ -120,4 +120,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/cloudwego/biz-demo/gomall/app/common => ../common
replace github.com/cloudwego/biz-demo/gomall/common => ./../../common
2 changes: 1 addition & 1 deletion gomall/app/checkout/infra/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/cloudwego/biz-demo/gomall/app/checkout/kitex_gen/payment/paymentservice"
"github.com/cloudwego/biz-demo/gomall/app/checkout/kitex_gen/product/productcatalogservice"
checkoututils "github.com/cloudwego/biz-demo/gomall/app/checkout/utils"
"github.com/cloudwego/biz-demo/gomall/app/common/suite"
"github.com/cloudwego/biz-demo/gomall/common/suite"
"github.com/cloudwego/kitex/client"
"github.com/cloudwego/kitex/pkg/rpcinfo"
consul "github.com/kitex-contrib/registry-consul"
Expand Down
2 changes: 1 addition & 1 deletion gomall/app/common/go.mod → gomall/common/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/cloudwego/biz-demo/gomall/app/common
module github.com/cloudwego/biz-demo/gomall/common

go 1.21

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package suite
import (
"os"

"github.com/cloudwego/biz-demo/gomall/app/common/utils"
"github.com/cloudwego/biz-demo/gomall/common/utils"
"github.com/cloudwego/kitex/client"
"github.com/cloudwego/kitex/pkg/rpcinfo"
"github.com/cloudwego/kitex/pkg/transmeta"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion gomall/go.work
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ go 1.21
use (
./app/cart
./app/checkout
./app/common
./app/frontend
./app/order
./app/payment
./app/product
./app/user
./common
)

replace github.com/apache/thrift => github.com/apache/thrift v0.13.0

0 comments on commit a4f84e2

Please sign in to comment.