-
Notifications
You must be signed in to change notification settings - Fork 241
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
flyctl install script mistakenly thinks that the binary is on the PATH on Codespaces Ubuntu #733
Comments
I'm not able to reproduce this. Do you have |
Unfortunately not. Here it is
ReproductionCreate a new codespace. I'm using this repo Wait for it to boot. Run Run Run |
So revisiting this - indeed you have to set your path manually the first time. This is true on all platforms - the install script will not modify your PATH. For codespaces, you'll want to make sure that the flyctl install directory is added to your profile at boot time. |
Sorry @jsierles , I think there has been a misunderstanding here. I am not reporting that the path was unmodifed, rather that the install script was failing to print the information saying that it needs to be added to the PATH. I have tested this again and the problem still exists with the latest version. Here is the current output:
The expected output should include the output of this part of the shell script: echo "Manually add the directory to your \$HOME/$shell_profile (or similar)"
echo " export FLYCTL_INSTALL=\"$flyctl_install\""
echo " export PATH=\"\$FLYCTL_INSTALL/bin:\$PATH\""
echo "Run '$exe --help' to get started" I think this should be reopened. |
Ah OK. So I tried on a fresh ubuntu Docker container:
This means there must be something different in the environment you're testing. |
Describe the bug
Hello! I just ran
curl -L https://fly.io/install.sh | sh
on a new Ubuntu box and this happened** Command output: **
Looking at the script I think the issue may be this check here:
It uses
command -v flyctl
to test if flyctl is on the PATH, but it mistakenly thinks it is because while it is not in the PATH, it is in the cwd whencommand -v flyctl
is run, so flyctl successfully executes. Once the script exits we're no longer in the flyctl bin directory, so it no longer works.If I follow the instructions in the other branch of the if statement it does work.
The text was updated successfully, but these errors were encountered: