Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Oct 25, 2023
1 parent 94adcd0 commit 6508044
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
7 changes: 5 additions & 2 deletions cmd/construct.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6508044

Please sign in to comment.