oc process fails with error: the path "/cygdrive/c/openshift/projects/project.yml" does not exist

Solution Unverified - Updated -

Issue

When trying to pass a path to the "oc" binary for Microsoft Windows through cygwin, it fails with the following error.

$ export THIS_DIR=$(pwd)
$ oc process -f $THIS_DIR/project.yml PROJECT=test
error: the path "/cygdrive/c/openshift/projects/project.yml" does not exist

Environment

Microsoft Windows
Cygwin
OpenShift v3.x Windows Client

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.