game-ci / unity-builder

Build Unity projects for different platforms
https://github.com/marketplace/actions/unity-builder
MIT License
822 stars 231 forks source link

Cannot access repositories from Unity Package Manager #614

Open valentindiehl opened 6 months ago

valentindiehl commented 6 months ago

Bug description

When adding the Meta XR Core SDK using the Unity Package Manager (so from the Unity Asset Store), everything works out-of-the-box in the editor and in builds there. In the CI build pipeline (self-hosted), the build fails because the Unity Builder isn't capable of downloading the Meta package from Unity Packagestore.

How to reproduce

Expected behavior

Normal build workflow, successful result.

Additional details

The build fails with the following error:

One or more packages could not be added to the local file system:
    com.meta.xr.sdk.core: Cannot install package. You are not signed in. Please sign in using the Hub and retry:
      Request [GET https://download.packages.unity.com/com.meta.xr.sdk.core/-/com.meta.xr.sdk.core-59.0.0.tgz] failed because it lacks valid authentication credentials
./External/baselib/builds/Include/Internal/../C/Internal/Baselib_Semaphore_FutexBased.inl.h(158): Assertion failed (count >= 0) - Destruction is not allowed when there are still threads waiting on the semaphore.
Trace/breakpoint trap
Build failed, with exit code 133
samisuleman10 commented 6 months ago

I am also facing the same issue.

alphdevcode commented 6 months ago

Same issue over here

samisuleman10 commented 6 months ago

I found the solution here: https://forum.unity.com/threads/gitlab-pipeline-unity-hub-wont-sign-in.1515683/

Croydon commented 3 months ago

I found the solution here: https://forum.unity.com/threads/gitlab-pipeline-unity-hub-wont-sign-in.1515683/

I run into this problem and fixed it via this solution. However, this is more like a workaround. Probably game-ci needs to get extended to support loading packages from the Asset Store.