Closed edouard-lopez closed 10 months ago
Hey @edouard-lopez, that warning pops up when you're trying to install a plugin that might overwrite files from another one, which isn't what you want. I tried to reproduce your situation by creating a local plugin, installing it, and then trying to reinstall it a couple of different ways, but I couldn't get the same issue. So, while it might be a bug, it seems like something else might be going on in your case. Did you maybe do something out of the ordinary, like messing with Fisher's universal variable state?
Let me take a look at your repo. Where is it?
Why do you need to run Pure's uninstaller for anything related to k8s support in Fish? Are you trying to add k8s support to Pure or Fish?
When developing a new feature, I'm regularly reinstalling the plugin using my local directory to check for the results. Yep, I'm working on displaying k8s contextual information see https://github.com/pure-fish/pure/issues/322
Sure, I also do that with plugins I develop and it shouldn't cause any issues. Therefore, your problem must be originating from somewhere else. My hunch is that it could be related to you perhaps (inadvertently?) messing with Fisher's state variables. This issue might disappear if you uninstall everything, clean up your universal variables, and then reinstall.
Can you share the repository link? I'd like to take a closer look and try to reproduce your issue, as I was unable to do so based just on your description.
Repo is here https://github.com/pure-fish/pure/
I circumvented the issue by improving my docker workflow.
To build a Fish 3.6.1
with a working pure
❯ make build-pure-on dev-pure-on FISH_VERSION=3.6.1
To run test against Fish 3.6.1
and working files
❯ make -s dev-pure-on FISH_VERSION=3.6.1 CMD='fishtape tests/_pure_prompt_k8s.test.fish'
Hello @jorgebucaran, long time no see!
I'm working to add k8s support in Fish, when I try to install pure from my local directory, I'm met with a bunch of warning:
and
Actual
The current solution is to run:
_pure_uninstall
rm $__fish_config_dir/functions/fish_*.fish
fisher install ./
Expected