Skip to content

Commit

Permalink
Set archive uploads to include full files
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyHuynh1 committed May 28, 2024
1 parent 3d60cb6 commit 032e87d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Control/Carrier/FossaApiClient/Internal/FossaAPIV1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ import App.Support (
)
import App.Types (
DependencyRebuild,
FileUpload (FileUploadMatchData),
FileUpload (FileUploadFullContent),
Policy (..),
ProjectMetadata (..),
ProjectRevision (..),
Expand Down Expand Up @@ -947,7 +947,7 @@ archiveBuildUpload' apiOpts rebuild archive = context ("archive: '" <> toText ar
(baseUrl, baseOpts) <- useApiOpts apiOpts

let opts = "dependency" =: True <> "rawLicenseScan" =: True
let archiveProjects = ArchiveComponents [archive] rebuild FileUploadMatchData
let archiveProjects = ArchiveComponents [archive] rebuild FileUploadFullContent

-- The response appears to either be "Created" for new builds, or an error message for existing builds.
-- Making the actual return value of "Created" essentially worthless.
Expand Down

0 comments on commit 032e87d

Please sign in to comment.