Skip to content

Commit 7df6382

Browse files
Fix license file matches (#1434)
* Fix license scan bug
1 parent 6c4e3e1 commit 7df6382

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# FOSSA CLI Changelog
22

3+
## 3.9.20
4+
- Fixes file matches for license scans ([#1434](https://github.com/fossas/fossa-cli/pull/1434)).
5+
36
## v3.9.19
47
- Release a Mac arm64 binary. ([#1426](https://github.com/fossas/fossa-cli/pull/1426))
58
- Updated the license to CPAL, an OSI-approved license similar to MPL ([#1431](https://github.com/fossas/fossa-cli/pull/1431)).

src/Fossa/API/Types.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ instance ToJSON ArchiveComponents where
151151
toJSON ArchiveComponents{..} =
152152
object
153153
[ "archives" .= archiveComponentsArchives
154-
, "fullFiles" .= archiveComponentsUpload
154+
, "fullFiles" .= case archiveComponentsUpload of
155+
FileUploadFullContent -> True
156+
FileUploadMatchData -> False
155157
, -- Don't use the ToJSON instance of DependencyRebuild since this endpoint has a different expectation.
156158
"forceRebuild" .= case archiveComponentsRebuild of
157159
DependencyRebuildReuseCache -> False

0 commit comments

Comments
 (0)