Skip to content

Commit c20627e

Browse files
committed
Print fancy name when listing used libraries
1 parent 2b1cfdd commit c20627e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: print_used_libraries_if_verbose.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ func (s *PrintUsedLibrariesIfVerbose) Run(ctx *types.Context) error {
5050
if library.IsLegacy {
5151
legacy = constants.MSG_LIB_LEGACY
5252
}
53+
name := library.Name
54+
if library.RealName != constants.EMPTY_STRING {
55+
name = library.RealName
56+
}
5357
if library.Version == constants.EMPTY_STRING {
54-
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_LIBRARY, library.Name, library.Folder, legacy)
58+
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_LIBRARY, name, library.Folder, legacy)
5559
} else {
56-
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_LIBRARY_AT_VERSION, library.Name, library.Version, library.Folder, legacy)
60+
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_USING_LIBRARY_AT_VERSION, name, library.Version, library.Folder, legacy)
5761
}
5862
}
5963

0 commit comments

Comments
 (0)