Skip to content

Commit

Permalink
fix(pub): Do not rely on the package name to be present
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Salmi <timo.salmi@iki.fi>
  • Loading branch information
Syyllinen authored and sschuberth committed Jan 19, 2024
1 parent f91408e commit 81d11a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/package-managers/pub/src/main/kotlin/Pub.kt
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ class Pub(
pkgInfoFromLockFile["source"].textValueOrEmpty() == "git" -> {
val pkgInfoFromYamlFile = readPackageInfoFromCache(pkgInfoFromLockFile, workingDir)

rawName = pkgInfoFromYamlFile["name"].textValue() ?: packageName
rawName = pkgInfoFromYamlFile["name"]?.textValue() ?: packageName
description = pkgInfoFromYamlFile["description"].textValueOrEmpty().trim()
homepageUrl = pkgInfoFromYamlFile["homepage"].textValueOrEmpty()
authors = parseAuthors(pkgInfoFromYamlFile)
Expand Down

0 comments on commit 81d11a2

Please sign in to comment.