Skip to content

Commit 584d0f1

Browse files
committed
fix order of args in ficus invocation
1 parent e0a3904 commit 584d0f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App/Fossa/Ficus/Analyze.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ ficusCommand ficusConfig bin = do
254254
pure cmd
255255
where
256256
snippetScanRetentionDays = ficusConfigSnippetScanRetentionDays ficusConfig
257-
configArgs endpoint = ["analyze", "--secret", secret, "--endpoint", endpoint, "--locator", locator, "--set", "all:skip-hidden-files", "--set", "all:gitignore", "--exclude", ".git", "--exclude", ".git/**"] ++ configExcludes ++ [targetDir] ++ maybe [] (\days -> ["--snippet-scan-retention-days", toText days]) snippetScanRetentionDays
257+
configArgs endpoint = ["analyze", "--secret", secret, "--endpoint", endpoint, "--locator", locator, "--set", "all:skip-hidden-files", "--set", "all:gitignore", "--exclude", ".git", "--exclude", ".git/**"] ++ configExcludes ++ maybe [] (\days -> ["--snippet-scan-retention-days", toText days]) snippetScanRetentionDays ++ [targetDir]
258258
targetDir = toText $ toFilePath $ ficusConfigRootDir ficusConfig
259259
secret = maybe "" (toText . unApiKey) $ ficusConfigSecret ficusConfig
260260
locator = renderLocator $ Locator "custom" (projectName $ ficusConfigRevision ficusConfig) (Just $ projectRevision $ ficusConfigRevision ficusConfig)

0 commit comments

Comments
 (0)