How can I use alr publish --tar --skip-submit
on a git
checkout of a commit?
Azure Pipelines are doing this to ensure that the branch did not change during the run of the pipeline.
Right now I get the following error:
ERROR: /home/vsts/work/1/s: Your branch is ahead of remote:
ERROR: Please push local commits to the remote branch.
I tried alr --force publish --tar --skip-submit
, but this did not help anything.
In the code of alr
I found https://github.com/alire-project/alire/blob/16b060b385f10932df967a7e9be1792842f24975/src/alire/alire-publish.adb#L217 and traced back from there and did not find a way to skip this check.
However, it is hard to believe that no one needs this.