Chapter 7. Known issues


There is currently a known issue when starting workspaces that clone private Git repositories. After successfully cloning and reading the remote Git repository, the project-clone container fails to checkout a specified Git revision, for example a feature branch or PR branch. As a result of this error, the remote Git repository is cloned into a temporary directory named project-clone-<random_characters>.

Note

In OpenShift Dev Spaces, users have two ways to specify a Git revision for a new workspace:

  • By adding a checkoutFrom section in the devfile.
  • By visiting or entering the URL of a feature branch or pull request in the browser or in the OpenShift Dev Spaces dashboard.

Workaround

  • If you are using a checkoutFrom section in the devfile, then do as follows:

    1. Before starting a new workspace, remove or comment out the checkoutFrom section from the devfile.
    2. After the repository is cloned, switch to the desired revision.
  • If you are using the URL of a feature branch or pull request to start a new workspace, then do as follows:

    1. When starting a new workspace, enter the URL of the repository without any branch syntax.
    2. After the repository is cloned, switch to the desired revision.

Additional resources

Currently, there is a known issue with the Java Gradle sample in restricted environments. Running the 1-build command to build an application might result in the FAILURE: Build failed with an exception error and failure to load a native library or not resolving a plug-in artifact in plug-in repositories. There is currently no workaround for this issue.

Additional resources

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat