Skip to content

Commit

Permalink
refactor(stack): Re-order the constuctor arguments for VcsInfo
Browse files Browse the repository at this point in the history
Align the order with order the properties are declared.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau authored and sschuberth committed Jul 3, 2024
1 parent f13733d commit 46ff1b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/package-managers/stack/src/main/kotlin/Stack.kt
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ private fun parseCabalFile(cabal: String, identifierType: String): Package {
val vcsPath = (map["source-repository-this-subdir"] ?: map["source-repository-head-subdir"]).orEmpty()
val vcs = VcsInfo(
type = VcsType.forName(vcsType),
revision = map["source-repository-this-tag"].orEmpty(),
url = vcsUrl,
path = vcsPath
path = vcsPath,
revision = map["source-repository-this-tag"].orEmpty()
)

val homepageUrl = map["homepage"].orEmpty()
Expand Down

0 comments on commit 46ff1b8

Please sign in to comment.