-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
"old" version being uploaded as release #34
Comments
You do not pass the branch or origin to the script. What is it used for? You can call |
I'm honestly not sure how or where it's going wrong. As far as I can see the master branch, the develop branch and the tag are correct but somehow when I download the source code here, it is the previous version: https://github.com/WoLpH/numpy-stl/releases But I'm not sure if this is due to gpgit or not so I was hoping you might have an idea. The branch and origin are automatically passed along by git-flow-avh when creating a release. Here's the git-flow log from a release:
And the gpgit log: log |
From the log you can see, that it tags the commit You can also see The crash needs to be fixed, I understand why that happens. |
I have commited a fix for the color issue |
Alright, looking at your output there seems to be something wrong with your hook. If I have the source of that hook, I can help better. The issue is, that you are doing a merge. It looks like from dev to master possibly. But you are still tagging the dev branch. GPGit by default tags the HEAD, so that might still point to dev? |
So I see that the signed release contains the correct files, while the git tag (and autogenerated github files) do not. Weird. I have no idea why that happens, as the archive is being created based on the tag. Maybe that is not working correct? |
I've downloaded the new version from your repo and tried again. The log is attached For release 2.16.3 I have not done a The .xz file is correct, both the .tar.gz and .zip files are not. Upon a little closer inspection, it appears that GPGit correctly pushes the new release with the correct files, but it also pushes an incorrect Git tag. I'm not sure if that's a Github releases quirk or something else, but it appears to be creating a tag based on what is on Github at that time (before the changes are pushed): https://github.com/WoLpH/numpy-stl/tree/v2.16.3 The big issue here is... when I do a |
I think I have found it. The current branch is passed as As a workaround I can do a |
That appears to work. Perhaps GPGit should default to pushing the tag before creating the release if it exists? |
I dont understand. What is Gpgit first creates the tag, then pushes it and afterwards creates a github release. I dont understand what you would want to improve here, as it looks "already improved to me". I guess I am completely wrong. |
Yes, gpgit creates the tag locally. But until it is pushed, github won't know about it. So when you create the release on github, github automatically creates a tag from the current source on github which is outdated at that point. |
But the tag gets pushed first. https://github.com/NicoHood/GPGit/blob/master/gpgit.sh#L715 Maybe the issue is, that it will tag the default branch, as it cannot detect the target branch of the tagged commit? So the solution would be to push the commit (not the tag) on the specific branch first, so that the Github release will work? A debug log would help a lot. Does it say "Warning Publishing release on default Github branch"? |
That part could be the culprit in that case. The tag already exists due to git-flow-avh, but that not push it yet. In that case gpgit does not push the tag anymore. So I guess it's just user error... With regards to the debug log, I attached one to an earlier reply: https://github.com/NicoHood/GPGit/files/7117208/gpgit.log In any case, perhaps a good one for the FAQ but it's the interaction between the other scripts that's causing this. |
I will try to provide a fix for that, by looking up the remote: |
While I'm still not a 100% sure it's the fault of gpgit (it could be my usage), but I'm seeing the previous commit being pushed as a release: wolph/numpy-stl#173
Some info:
I call gpgit from a git-flow-avh post-flow-feature-finish hook like this: https://github.com/WoLpH/dotfiles/blob/master/_git_template/hooks/post-flow-release-finish
https://github.com/WoLpH/dotfiles/blob/e423965d14f9c33f184648092e323e5b8ad47f58/_git_template/hooks/post-flow-release-finish#L21
The text was updated successfully, but these errors were encountered: