-
Notifications
You must be signed in to change notification settings - Fork 264
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
fisher blocks GitHub Codespaces personalized dotfile setup #742
Comments
I'm happy to change this. I just need a way ti grab stdin from the user for things like piping plugins into Fisher install, update and remove commands. |
right so just to understand the idea here is that one could do something like How about perhaps making this something triggered by an explicit flag, instead of implicit automagic? So you would have to e.g. |
That's correct. Introducing a flag would be a breaking change, though. I'm not really opposed to it, but could this be worked around on your end? |
Otherwise, |
GitHub Codespaces specific, but would similarly block other non-interactive uses of fisher anywhere where STDIN is blocking. I can work around this problem by using
I asked a friend of mine about this and he suggested if you don't like |
Yes, indeed. Your friend is absolutely correct. 👌 |
We might need a breaking change to fix this. I like using Fisher's feature for testing and debugging, like running Oh, and just a heads up: this feature is mentioned in https://github.com/jorgebucaran/fisher#removing-plugins, so feel free to check it out if you're interested! |
Hit this myself while trying to install/setup fisher via ansible. |
Thanks, @keslerm. I've got this squarely on my radar. 👍 |
Just wanted to drop a note for anyone following this. The main issue here is that it's a major breaking change. I find the ability to pipe things into Fisher useful as well. It's well-documented, used across tests, and has been around for a while. That said, maybe there's a way to allow using Fisher as you intended without breaking it. I'd love to dig into this, but realistically, it's not going to happen right now unless I get a minimal reproducible example that I can easily clone and run to see the issue. If anyone's keen to move this forward faster, feel free to throw together a demo, and I'll tinker with Fisher to see if we can make it work both ways. |
|
https://github.com/vorburger/dotfiles-reproduce-problem illustrates this. |
Thanks! This is a starting point. I think I'll dig into it more next week. |
I attempted to invoke Fisher in a
bootstrap.sh
for a GitHub Codespaces personalized dotfile setup.This didn't work and blocked the GitHub Codespaces setup. I have debugged it and realized it's because of this line:
This blocks and waits for input because during a GitHub Codespaces setup STDIN is set to an pipe. (I do not know why GitHub does this; I'll post on https://github.com/orgs/community/discussions/35527 and see if GitHub wants to provide a reason for why they do this.)
This technically isn't GitHub Codespaces specific, but would similarly block other non-interactive uses of fisher anywhere where STDIN is blocking.
I can work around this using
fisher </dev/null
, so I just wanted to let you know about it FYI. It seems weird to have to do this. (And took me some time to figure out.)https://github.com/vorburger/dotfiles-reproduce-problem illustrates this.
The text was updated successfully, but these errors were encountered: