m1-terraform-provider-helper: Subsequent provider installations fail
It seems that when i first install a provider version and sometime later another version that the latter installations fails.
Here’s the output:
$ m1-terraform-provider-helper install justtrackio/gosoline -v v0.0.1 Getting provider data from terraform registry
Getting source code...
Enumerating objects: 253, done.
Counting objects: 100% (83/83), done.
Compressing objects: 100% (49/49), done.
Total 253 (delta 53), reused 34 (delta 30), pack-reused 170
Compiling...
Successfully installed justtrackio/gosoline v0.0.1
$ m1-terraform-provider-helper install justtrackio/gosoline -v v0.0.2 Getting provider data from terraform registry
Getting source code...
FATA[0001] Bash execution did not run successfully: exit status 1.
Output:
Im Moment auf keinem Branch. (Not on a branch)
Bitte geben Sie den Branch an, welchen Sie zusammenführen möchten. (You have to specify a branch which you want to merge)
Siehe git-pull(1) für weitere Details.
git pull <Remote-Repository> <Branch>
After deleting the .m1-terraform-provider-helper/terraform-provider-gosoline directory it works just fine to run the latter install command.
Expected Behavior
It should check out the new code, compile and install it
Actual Behavior
It fails to checkout the correct tag (it seems)
Steps to Reproduce (including precondition)
See description
Screenshot on This Problem (if possible)

Your Environment
- OS: MacOS 13.2.1, M2 Pro 16" 32GB
- m1-terraform-provider-helper version: 0.8.1
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (12 by maintainers)
We are using https://github.com/go-git/go-git already in many parts of the application, now might be the time to use it everywhere, to avoid those kind of bugs