Skip to content

Commit 97aa2f7

Browse files
committed
print logs
1 parent c22f3a1 commit 97aa2f7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cmd/dep/run.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ func run() error {
149149
log.Println(err)
150150
return err
151151
}
152-
fmt.Println("==================services=======================")
153-
fmt.Println(services)
154-
fmt.Println("=========================================")
155152
d, err := dep.NewDig(workspace, filename, services, projectNameMatch, dependenceMatch)
156153
if err != nil {
157154
log.Println(err)
158155
return err
159156
}
157+
fmt.Println("==================dig=======================")
158+
fmt.Println(d)
159+
fmt.Println("=========================================")
160160
dirs := make([]string, 0)
161161
//获取change files list
162162
var files change.Files
@@ -181,6 +181,9 @@ func run() error {
181181
changeFiles = append(changeFiles, files.Modified...)
182182
changeFiles = append(changeFiles, files.Added...)
183183
changeFiles = append(changeFiles, files.Renamed...)
184+
fmt.Println("==================changeFiles=======================")
185+
fmt.Println(changeFiles)
186+
fmt.Println("=========================================")
184187
for _, c := range changeFiles {
185188
for _, service := range services {
186189
if strings.Index(c, strings.Join(service, "/")+"/") > -1 {
@@ -216,6 +219,9 @@ func run() error {
216219
}
217220
}
218221
fmt.Println("==================matrix=======================")
222+
for _, m := range matrix {
223+
fmt.Println(m.Name)
224+
}
219225
fmt.Println(matrix)
220226
fmt.Println("=========================================")
221227

0 commit comments

Comments
 (0)