asdf-community / asdf-plugin-manager

A plugin manager for the asdf version manager
https://github.com/asdf-vm/asdf
Apache License 2.0
46 stars 6 forks source link

add-all is modifying my git repo #55

Closed airtonix closed 1 week ago

airtonix commented 3 months ago

Describe the bug

example repo: https://github.com/airtonix/broken-asdf-plugin-manager-1-3-1

I've been using the ./setup.sh in lots of projects for my team members to faceroll all day long.

test on git master 
> ./setup.sh 

πŸ™  Installing/Updating ASDF  

πŸ™  Updating asdf...  

HEAD is now at ccdd47d chore(master): release 0.14.0 (#1641)
Updated asdf to release v0.14.0

πŸ™  Installing ASDF Plugin Manager 1.3.1  

Plugin named asdf-plugin-manager already added
Location of asdf-plugin-manager plugin: /home/zenobius/.asdf/plugins/asdf-plugin-manager
Updating asdf-plugin-manager to v1.3.1
warning: refname 'v1.3.1' is ambiguous.
warning: refname 'v1.3.1' is ambiguous.
Already on 'v1.3.1'
asdf-plugin-manager 1.3.1 is already installed

πŸ™  Installing .plugin-versions  

[INFO] Adding: asdf-plugin-manager https://github.com/asdf-community/asdf-plugin-manager.git 6fc3faa
Plugin named asdf-plugin-manager already added
error: Your local changes to the following files would be overwritten by checkout:
        README.md
Please commit your changes or stash them before you switch branches.
Aborting

Steps to reproduce

git clone git@github.com:airtonix/broken-asdf-plugin-manager-1-3-1.git
cd broken-asdf-plugin-manager-1-3-1
./setup.sh

Expected behavior

don't run git in my repo

Additional context

it's most likely checkout_plugin_ref causing the issue

airtonix commented 3 months ago

cc @aabouzaid