-
Notifications
You must be signed in to change notification settings - Fork 25
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
Installation stops if empty (!) /Applications/Unity
folder is present
#16
Comments
/Applications/Unity
folder is present
The idea was that the script is careful not to overwrite anything and leave it up to the user to explicitly delete unrecognized directories. I'm bit hesitant to just continue if the directory is empty, since the directory could contain hidden files (at least .DS_Store is common) and it might be confusing if it seemingly only ignores empty directories sometimes. I thought about adding a flag like What do you think about deleting the directory during the travis installation if it's empty? E.g. adding
I haven't tested this with travis but |
Wow, thanks for the fast response! Sound like a bit quirky workaround, I'd like to keep travis instruction count low. |
Well, actually I could run installer just fine, but it invalidated Travis cache as I removed the Could you please suggest a change (only a patch I'd use) in the script that I can safely apply to my instance? I would do it myself, but actually I don't speak python. |
I realised there was already some code to test for almost empty directories during the cleanup, so I refactored it and the script now overwrites an existing but empty Unity directory (06165fc). Hope that works with travis. |
Wow, thanks, this just solved the issue perfectly. Thanks again for your time on this! |
I managed to cache Do you aware of any more Unity installation folder I should cache perhaps? |
As far as I can tell, You could also try to get the Unity log from |
Thanks, I'll contact Travis then. |
Well, they did not addressed the issue, but I can see these folks - https://github.com/watson-developer-cloud/unity-sdk/blob/develop/.travis.yml - to set Should I do the same with |
Seems like the executable bit is set for all files in the Unity.app bundle, so you can apply chmod recursively: |
Hi,
thanks for the script, I'm using it for months now. 🙏
But now I want to cahce the Unity installation on the Travis CI image, but unfortunately when an empty
/Applications/Unity
folder is present, the script stops saying:Details: When I setup caching for
Applications/Unity
(see the corresponding changes in.travis.yml
), Travis seemingly sets up an empty folder. Then the script stops at install-unity.py#L783, as it seems believe there is an existing Unity installation there, but there is not.See error log live at eppz / Unity.Test.eppz / Build #72.
Question is: Could you please help me 🤞 on how to modify / patch the script to proceed with the installation, if
/Applications/Unity
is present, but empty.The text was updated successfully, but these errors were encountered: