Skip to content

Commit c8bcd7c

Browse files
committed
fix update dependencies before generate dic contianer
1 parent 6f5f97c commit c8bcd7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmds/module/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ func main() {
6060
unregister(container, util, os.Args[2])
6161
}
6262

63-
_, err := exec.Command("go", "run", "cmds/dic/main.go").Output()
63+
_, err := exec.Command("go", "mod", "tidy").Output()
6464
if err != nil {
6565
util.Println(err.Error())
6666
os.Exit(1)
6767
}
6868

69-
_, err = exec.Command("go", "mod", "tidy").Output()
69+
_, err = exec.Command("go", "run", "cmds/dic/main.go").Output()
7070
if err != nil {
7171
util.Println(err.Error())
7272
os.Exit(1)

0 commit comments

Comments
 (0)