Skip to content

Commit

Permalink
Fix license file matches (#1434)
Browse files Browse the repository at this point in the history
* Fix license scan bug
  • Loading branch information
JeffreyHuynh1 committed May 28, 2024
1 parent 6c4e3e1 commit 7df6382
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# FOSSA CLI Changelog

## 3.9.20
- Fixes file matches for license scans ([#1434](https://github.com/fossas/fossa-cli/pull/1434)).

## v3.9.19
- Release a Mac arm64 binary. ([#1426](https://github.com/fossas/fossa-cli/pull/1426))
- Updated the license to CPAL, an OSI-approved license similar to MPL ([#1431](https://github.com/fossas/fossa-cli/pull/1431)).
Expand Down
4 changes: 3 additions & 1 deletion src/Fossa/API/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ instance ToJSON ArchiveComponents where
toJSON ArchiveComponents{..} =
object
[ "archives" .= archiveComponentsArchives
, "fullFiles" .= archiveComponentsUpload
, "fullFiles" .= case archiveComponentsUpload of
FileUploadFullContent -> True
FileUploadMatchData -> False
, -- Don't use the ToJSON instance of DependencyRebuild since this endpoint has a different expectation.
"forceRebuild" .= case archiveComponentsRebuild of
DependencyRebuildReuseCache -> False
Expand Down

0 comments on commit 7df6382

Please sign in to comment.