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

OnReady/OnReadyGet not triggering in CI builds causing strange erorrs #28

Closed
TheOrioli opened this issue Mar 7, 2022 · 1 comment
Closed

Comments

@TheOrioli
Copy link

I'm writing this issue so others can find the solution easier. Potentially a similar text could be included in the README.md

When making builds inside docker images they sometimes don't include .NET by default (e.g. abarichello/godot-ci#80), but Godot still resolves NuGet packages. This causes the build pipeline to succeed, as all the code is valid, but the actual build will exhibit strange behavior as methods are not called and nodes are not fetched.

The solution, if using a docker image based on Debian 10, is to add

wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
apt-get update -qq
apt-get install -y apt-transport-https
apt-get update -qq
apt-get install -y dotnet-sdk-6.0

to your build pipeline before running the build command.

@31
Copy link
Owner

31 commented Mar 8, 2022

I had a troubleshooting section that kind of mentions this (that you need the .NET SDK, not something else), but yeah, I've mainly focused on non-CI. I've added some more to the section (and revamped it a bit), and I linked abarichello/godot-ci#80 as an example: https://github.com/31/GodotOnReady#i-dont-have-a-error-message-but-it-isnt-working. Thanks for letting me know, hopefully it helps someone in the future. 😄

@31 31 closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants