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

Fix build failing in dependency setup #429

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

Tuupertunut
Copy link
Contributor

What does this PR do?

This PR fixes the currently failing build. It fixes a bug in the dependency download scripts that caused libraries to not be found. See commit message for technical details.

Closes Issue(s)

Motivation

The build was failing. There was a time bomb like behavior in the dependency download scripts where builds could break at any time if a library developer decided to make more than 100 commits after the one that Ultrastar Play depended on. The SharpZipLib dependency failed to download because of this bug.

More

Additional Notes

It is a really bad idea to pull the last 100 commits and then hope that the commit you want to checkout is still among those. It is a time bomb that breaks builds at random times over the years. Now the pull command pulls that one commit directly.
@achimmihca
Copy link
Collaborator

achimmihca commented Dec 29, 2023

lgtm, thanks for the improvement.

The CI build failed because of unrelated Unity issue "License activation strategy could not be determined".

@achimmihca
Copy link
Collaborator

achimmihca commented Dec 29, 2023

The download dependencies bash scripts are not a very good solution in the first place.
I would love to have a better tool, something like Maven, Gradle, or Grunt but for Unity.

Maybe Cake (C# Make) would be a better solution.

I think writing the download dependencies scripts in C# would make sense given that Unity also uses C#

Another approach could be to add a Menu Item in the Unity editor that runs the corresponding setup code in C#.
However, this has the drawback that the Unity editor must open with a broken setup first. Not sure whether this will work well.

@basisbit basisbit merged commit eb95584 into UltraStar-Deluxe:master Dec 29, 2023
0 of 3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants