Skip to content

Fix Cygwin action workflow warning #17

@aregtech

Description

@aregtech

When running CMake action workflow for Cygwin platform, getting a warning like this:

Post job cleanup.
C:\cygwin\bin\git.exe version
git version [2](https://github.com/aregtech/areg-sdk-demo/actions/runs/11337035330/job/31527984645#step:22:2).45.1
Temporarily overriding HOME='D:\a\_temp\65f2d06f-[3](https://github.com/aregtech/areg-sdk-demo/actions/runs/11337035330/job/31527984645#step:22:3)043-42b1-bd8a-657caee0b0c3' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
C:\cygwin\bin\git.exe config --global --add safe.directory D:\a\areg-sdk-demo\areg-sdk-demo
C:\cygwin\bin\git.exe config --local --name-only --get-regexp core\.sshCommand
fatal: --local can only be used inside a git repository
C:\cygwin\bin\git.exe submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\""
fatal: detected dubious ownership in repository at '/cygdrive/d/a/areg-sdk-demo/areg-sdk-demo'
To add an exception for this directory, call:

	git config --global --add safe.directory /cygdrive/d/a/areg-sdk-demo/areg-sdk-demo
Warning: The process 'C:\cygwin\bin\git.exe' failed with exit code 12[8](https://github.com/aregtech/areg-sdk-demo/actions/runs/11337035330/job/31527984645#step:22:8)
0s
Merge pull request

Analyze the warning and figure out whether it can be fixed. The warning happens only after compilation with Cygwin when tries to run cleanup job.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions