-
Notifications
You must be signed in to change notification settings - Fork 16
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
No such file or directory after upgrading to Gradle 5.1 #65
Comments
@ajoberstar please, let me know if the example is sufficiently small or if I can help anyhow. |
Until ajoberstar/gradle-git-publish#65 is fixed
Until ajoberstar/gradle-git-publish#65 is fixed
I can confirm the problem for my project. |
Happening for me as well. Workaround in travis seems to be to execute it twice, ignoring the result of the first execution. |
Sorry for the delayed response on this and thanks for the detail in this issue. Trying to reproduce this on my Windows 10 box, I'm hitting #68 and not getting any farther. Won't be able to get back to this right away, but if anyone else can, please let us know if you identify anything. |
#68 seemed to go away on Gradle 5.3+. When upgrading your sample project to 5.4.1, everything seemed to work without a Could you try upgrading to the latest Gradle (and gradle-git-publish) and let me know if this is still an issue? |
It works with gradle 5.4.1 for one of my projects. I'm going to try successivly for the others. |
@chali has been out on vacation so I doubt he's seen this yet but he opened this after investigating some issues we were having with our project. His sample project is a simplified version of our flow. I upgraded Gradle and your plugins yesterday and it looks like our build succeeded now so this is likely fixed in the later versions of gradle as you say. I'll like @chali chime in when he's back which I believe is next week. |
I confirm that Gradle 5.4.1 doesn't have the problem. Thank you @ajoberstar for the investigation. |
Summary
When I'm running
gitPublishPush
in a freshly cloned project without local gradle project cache (.gradle
directory) and anybuild
output directory the build fails duringgitPublishCommit
with this error:Exception caught during execution of add command
.When I'm running the same command again the build is successful. When I'm using Gradle 5.0 even the first build is successful.
Build file
Here is a complete sample project: https://github.com/chali/genie
Command to reproduce
rm -Rf .gradle build && ./gradlew clean build gitPublishPush --stacktrace --info
Output
It looks very similar as #35. It looks like handling of stale task output might be involved because:
Deleting stale output file: /Users/mchalupa/projects/others/genie/build/gitPublish
is happening before commit and commit should use the content of deleted directory.The text was updated successfully, but these errors were encountered: