Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity build fails to access private Git repositories in Docker environment #65

Open
marian-ciortea-mt opened this issue Jan 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@marian-ciortea-mt
Copy link

Orb version

1.6.0

Execution environment

  • Executor: unity/windows-2019
  • Target platform: windows-il2cpp
  • Unity Editor version: 2021.3.24f1

Bug description

The unity/build command fails to access private Git repositories due to lack of Git credential configuration in the Docker environment. This command works fine in Linux and MacOS execution environments.

How to reproduce

  • Set up a Unity project with dependencies on a private Git repository
  • Configure CircleCI to build the project using game-ci/unity orb
  • Observe failure in resolving private repositories during the build

Expected behavior

The build process should authenticate and access private Git repositories seamlessly, resolving all dependencies.

Additional details

Returned error:

An error occurred while resolving packages:
  Project has invalid dependencies:
    <git package>: Error when executing git command. Host key verification failed.
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

Currently, the script doesn't handle Git authentication for private repositories inside the Docker container, leading to failed builds when private dependencies are involved.

@marian-ciortea-mt marian-ciortea-mt added the bug Something isn't working label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant