-
Notifications
You must be signed in to change notification settings - Fork 47
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
CLI-1388: Error on push:artifacts when source and destination tag values are the same. #1787
Comments
Maybe there's a misunderstanding of the purpose of In other words, when building the artifact, if you don't provide a Providing a In this model, I can't see any reason why the source git tag and destination git tag should be the same. |
@gambry would it help if we rename I'm wondering how we can make it more explicit that |
Let's tackle this from a technical requirement point of view. It's standard practice to cut releases using git tags against the development git repository. Also is standard practice that creating a release tag (i.e. using format So what I expect for these options to do is to allow teams to have the same release tag used in he development git repository and in Acquia Cloud's repository. This is to be able to trace changes.
I'd agree with you, but unfortunately
Why not removing that option completely and give the ability to use Thoughts? |
Would something like this make sense? #1801 |
Describe the bug
In scenario where development team want for the same tagged releases to be used in the development git repo and in AC tags' list, the team can have something like this in their CI/CD:
Is not however possible to use the same source and destination tag values, since doing it generate the below error:
error: src refspec 1.1.0 matches more than one
This is because
push:artifact
command initially create a branch with--source-git-tag
value and eventually a tag with--destination-git-tag
value. At the moment of pushing, the pushed ref is both a branch and a tag and git returns an errorTo Reproduce
Steps to reproduce the behavior:
acli push:artifact --source-git-tag=$any-source-tag --destination-git-tag=$same-value-as-source-git-tag --no-interaction --verbose
Expected behavior
The tag should correctly be pushed to acquia remote, or an error should be raised that --source-git-tag and --destination-git-tag values MUST not be the same.
The text was updated successfully, but these errors were encountered: