Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

"FIND: Parameter format not correct" with bash script #255

Open
jfboismenu opened this issue Jan 28, 2020 · 3 comments
Open

"FIND: Parameter format not correct" with bash script #255

jfboismenu opened this issue Jan 28, 2020 · 3 comments

Comments

@jfboismenu
Copy link

It seems like there something wrong with the find command when running codecov.sh on Azure Pipelines. I'm getting: FIND: Parameter format not correct.

As you can see from my Azure CI build, I'm getting this error.

I've validated that my tests do produce coverage

As you can see, I'm not doing anything special when it comes to uploading the coverage.

This isn't an issue on macOS or Linux.

@njsmith
Copy link

njsmith commented Feb 5, 2020

This affects my project as well, and means we currently don't have any coverage on Windows. Is uploading coverage from Windows intended to be supported?

@njsmith
Copy link

njsmith commented Feb 13, 2020

It looks like that error message comes from the Windows built-in C:\Windows\System32\find.exe tool, which is completely different from the Unix find utility. Some more details:

https://superuser.com/questions/1219129/unix-find-command-on-cmder-exe-in-windows

So possibly the problem is that azure pipelines changed their Windows configuration somehow and broke find?

@jromero
Copy link

jromero commented Oct 26, 2020

In our case, we had a custom runner on GitHub (using codecov-action) and as part of the setup we have cygwin installed with cygwin variables coming in last in the $PATH. Moving them to the beginning and restarting the service made it so that the unix style findexecutable is used.

Ideally, the script would auto detect the right binary to use and fail if it couldn't use it.

jromero added a commit to buildpacks/ci that referenced this issue Oct 26, 2020
Resolves issue related to codecov: codecov/codecov-bash#255

Signed-off-by: Javier Romero <[email protected]>
@thomasrockhu thomasrockhu self-assigned this Nov 29, 2020
@thomasrockhu thomasrockhu removed their assignment Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants