Skip to content

Commit

Permalink
refactor(pub): Use a more speaking name for pubspec
Browse files Browse the repository at this point in the history
Avoid a naming conflict in an upcoming change.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Sep 5, 2024
1 parent 7ef80e6 commit fca5d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/package-managers/pub/src/main/kotlin/Pub.kt
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,12 @@ class Pub(
val packageInfo = packages[id] ?: throw IOException("Could not find package info for $packageName")

try {
val pubspec = readPackageInfoFromCache(pkgInfoFromLockfile, workingDir)
val requiredPackages = pubspec?.dependencies.orEmpty().keys.toList()
val dependencyPubspec = readPackageInfoFromCache(pkgInfoFromLockfile, workingDir)
val requiredPackages = dependencyPubspec?.dependencies.orEmpty().keys.toList()

val transitiveDependencies = buildDependencyTree(
dependencies = requiredPackages,
manifest = pubspec,
manifest = dependencyPubspec,
lockfile = lockfile,
packages = packages,
labels = labels,
Expand Down

0 comments on commit fca5d83

Please sign in to comment.