From 65080440ca4a3896213fe8016fc303823b973059 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Wed, 25 Oct 2023 16:19:13 +0200 Subject: [PATCH] Update --- README.md | 1 + cmd/construct.go | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2b792f..83ee45d 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ locksmith --inputPackageList https://raw.githubusercontent.com/insightsengineeri ``` In order to download the packages from GitHub or GitLab repositories, please set the environment variables containing the Personal Access Tokens. + * For GitHub, set the `LOCKSMITH_GITHUBTOKEN` environment variable. * For GitLab, set the `LOCKSMITH_GITLABTOKEN` environment variable. diff --git a/cmd/construct.go b/cmd/construct.go index 1238d21..5c1e339 100644 --- a/cmd/construct.go +++ b/cmd/construct.go @@ -44,7 +44,7 @@ func ConstructOutputPackageList(packages []PackageDescription, packagesFiles map skipDependency = true } if !skipDependency { - log.Info(p.Package, " → ", d.DependencyName) + log.Info(p.Package, " → ", d.DependencyName, " (", d.DependencyType, ")") ResolveDependenciesRecursively( &outputPackageList, d.DependencyName, d.VersionOperator, d.VersionValue, repositoryList, packagesFiles, 1, @@ -96,7 +96,10 @@ func ResolveDependenciesRecursively(outputList *[]PackageDescription, name strin d.DependencyType == "LinkingTo" { if !CheckIfSkipDependency(indentation, p.Package, d.DependencyName, d.VersionOperator, d.VersionValue, outputList) { - log.Info(indentation, p.Package, " → ", d.DependencyName) + log.Info( + indentation, p.Package, " → ", d.DependencyName, + " (", d.DependencyType, ")", + ) ResolveDependenciesRecursively( outputList, d.DependencyName, d.VersionOperator, d.VersionValue, repositoryList, packagesFiles, recursionLevel+1,