Closed ryanlink closed 5 months ago
Thank you @ryanlink for creating this issue. If this is in regards to a defect, product question or feature request: you should use our support portal at https://support.fossa.com to file a request, as you would receive more immediate support.
Debug bundle fossa.debug (25).json.gz
Note that these redundant backslashes do not occur in fossa-analyze-scan-summary.txt
:
Warn: Command: `mvn` not suitable
Running with args: `-v` resulted in a non-zero exit code
Warn: Command execution failed
Attempted to run the command 'mvn -v'
inside the working directory 'D:\AINow\OTA1_3_22\backend\ainow-cloud-service\',
but failed, because the command exited with code '1'.
Often, this kind of error is caused by the project not being ready to build;
please ensure that the project at 'D:\AINow\OTA1_3_22\backend\ainow-cloud-service\'
builds successfully before running fossa.
The logs for the command are listed below.
They will likely provide guidance on how to resolve this error.
Command did not write a standard log.
Command error log:
mvn: startProcess: does not exist (No such file or directory)
Support: If you believe this to be a defect, please report a bug to FOSSA support at https://support.fossa.com
Closing, filed as internal Jira ticket https://fossa.atlassian.net/browse/ANE-1638
Describe the bug When using
--debug
to generate output fromfossa analyze
to troubleshoot a command failure in the build process on a Windows machine, the output contains many redundant backslashes, presumably as escape chars:Attempted to run the command 'C:\\\\\\\\Program Files\\\\\\\\apache-maven-3.9.6\\\\\\\\bin\\\\\\\\mvn -v'\\\\n inside the working directory 'C:\\\\\\\\FOSSA\\\\\\\\pfmService\\\\\\\\access-center\\\\\\\\',\\\\n but failed, because the command exited with code '1'.\\\\n\\\\n Often, this kind of error is caused by the project not being ready to build;\\\\n please ensure that the project at 'C:\\\\\\\\FOSSA\\\\\\\\pfmService\\\\\\\\access-center\\\\\\\\'\\\\n builds successfully before running fossa
To Reproduce Steps to reproduce the behavior:
fossa analyze ...
Expected behavior This error should not contain extraneous backslashes.
Debug bundle Please run
fossa
with the--debug
flag and attach the resultingfossa.debug.json.gz
file here.Additional context I asked ChatGPT to analyze the code in https://github.com/fossas/fossa-cli/blob/master/src/Effect/Exec.hs and explain the backslashes. Here's the response: