Open karlhorky opened 5 months ago
Also, I'm not sure where to report this feature suggestion for the installer, because there is only a "bug" issue type here, but I have another suggestion:
PATH
in installerIt would be helpful if the installer at https://fly.io/install.sh would modify the PATH
in correct files on all platforms
This would require reconsidering the Fly.io team position mentioned in the comment by @jsierles:
the install script will not modify your PATH
Currently, the installer script at https://fly.io/install.sh is the worst of all install options, since it requires manually editing .bash_profile
, .bashrc
, .zshrc
, etc.
On other platforms like Windows and macOS, we luckily have Chocolatey and Homebrew which can take this over for us:
But on Linux, the Snap is the super old 0.0.7
version (2 August 2019), so we still recommend students use the install script, which has these downsides.
Describe the bug
The
flyctl
install script at https://fly.io/install.sh is suggesting users use$HOME/.bash_profile
on Ubuntu, which doesn't read this file by defaultThis led to confusing instructions for a student, where they added the
export
to$HOME/.bash_profile
(which appeared to be correct) and then it was not being read on Ubuntu - after opening a new terminal,flyctl
could not be found:fly version
: flyctl v0.2.71 linux/amd64 Commit: e1491edef1d9b04d94d54bfc893fef59c4d5bed5 BuildDate: 2024-06-15T22:28:28ZMaybe it would be good to suggest
.bashrc
on Ubuntu? (or just always.bash_profile
and.bashrc
?)fly.toml
Not relevant
Command output:
See above