Skip to content

Commit a23ccdc

Browse files
committed
docs(spdx): Explain why the project's VcsInfo is empty
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
1 parent b75f06b commit a23ccdc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • plugins/package-managers/spdx/src/main/kotlin

plugins/package-managers/spdx/src/main/kotlin/Spdx.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ class Spdx(override val descriptor: PluginDescriptor = SpdxFactory.descriptor) :
138138
definitionFilePath = VersionControlSystem.getPathInfo(definitionFile).path,
139139
authors = emptySet(),
140140
declaredLicenses = emptySet(),
141+
// Do not derive the (processed) VCS information from the working directory as done for several other
142+
// package managers, including SpdxDocumentFile, because the location of the SPDX file usually does not
143+
// match the location of the project it describes.
141144
vcs = VcsInfo.EMPTY,
142145
homepageUrl = "",
143146
scopeDependencies = scopes

0 commit comments

Comments
 (0)