Ask Your Question
1

bloom-release: How to over-write latest release

asked 2014-01-31 08:11:26 -0600

czalidis gravatar image

updated 2014-01-31 09:28:56 -0600

I have updated my release repo running bloom-release but now I want to update that release over-writing previous commits and tags. One way is to do it manually, using git, resetting each branch/tag to previous state and then running bloom-release again, but I am searching for a more elegant way.

EDIT: I have cancelled the pull request to rosdistro at the end of bloom-release script, so the release is only in my release repo.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2014-01-31 08:35:47 -0600

William gravatar image

You should never "overwrite" a release. Once a version, say 0.1.0-0 is released, people are referencing it and it should not be changed.

If you need to release version 0.1.0 again, just run bloom-release again and it will automatically increment the release version, so it would become 0.1.0-1.

edit flag offensive delete link more

Comments

I have canceled the pull request to rosdistro, so the release is only in my -release repo. I want to do the same release due to a typo, so i don't want to increase the build number without a reason.

czalidis gravatar imageczalidis ( 2014-01-31 09:19:05 -0600 )edit

Version numbers are free. Use another.

ahendrix gravatar imageahendrix ( 2014-01-31 12:11:43 -0600 )edit

@czalidis in that case there is no one referencing it, but there is no easy way to do this, bloom is setup to explicitly not overwrite releases because often they are already referenced. Manually resetting the branches and tags is about the only thing you could do.

William gravatar imageWilliam ( 2014-01-31 15:48:30 -0600 )edit

Thanks for your time anyway! I have done in once in the past manually and it is a lot of work to reset each branch/tag properly. I was asking only because I saw: "git push --all && git push --tags # You might have to add --force to the second command if you are over-writing existing tags" in bloom-release script.

czalidis gravatar imageczalidis ( 2014-02-01 00:00:28 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-01-31 08:11:26 -0600

Seen: 79 times

Last updated: Jan 31 '14