allwpilib icon indicating copy to clipboard operation
allwpilib copied to clipboard

WPILib Install Directory in non-home directory path [Linux]

Open modelmat opened this issue 5 years ago • 10 comments

~Currently, WPILib is installed to ~/wpilib/<year> and this is not easily changeable. I find this location rather annoying as it clutters up ~/~

~However, if it were possible to change the directory using an environment variable such as WPILIB_HOME this would allow team members to easily configure the location of the install to somewhere like ~/.wpilib.~

~Furthermore, it would likely to be possible to install WPILib system wide if it were installed to somewhere like /opt/wpilib (although it would likely need to be writeable?).~ EDIT: 19/11

The current location, ~/wpilib is rather annoying as it clutters my home directory. I would appreciate if it were possible to have this directory in another place, such as ~/.local/share/wpilib as this keeps it out of the home directory.

modelmat avatar Nov 12 '19 20:11 modelmat

A change like this has massive reaching affects throughout the entire WPILib ecosystem.

To start with, this requires updating multiple WPILib projects to support this, including the installer, along with figuring out what to do on updates, or if the environment variable is not set.

Afterwards, vendors need to do the same thing, which makes both their installers and documentation more complicated.

Finally, and the largest reason, is debuggability. Currently, the location might be different per platform, but the location is fixed once you know your platform. This makes finding an issue much more difficult. We know from experience that users like to change things, and then forget they changed those things when asking for help when something doesn't work. So we go through hours of debugging, because we are assuming a fixed location. Debugging teams is already hard enough, and adding another variable exponentially raises cost for very little gain.

ThadHouse avatar Nov 18 '19 21:11 ThadHouse

Would a push for a default install directory other than in ~/ be allowed? This is the reason why I asked for this; I do not like having to clutter up my ~/ directory; and being able to use another hidden location (or even one in say /opt/wpilib) would be much preferable (IMO).

modelmat avatar Nov 19 '19 07:11 modelmat

Is there a common unix path that is available to all users without sudo, on both linux and mac? That is one of the requirements we have, that everything can be installed without root access.

ThadHouse avatar Nov 19 '19 07:11 ThadHouse

~/.local/share/frc2019 would be the right place per-user, but there is no globally accessible directory.

calcmogul avatar Nov 19 '19 07:11 calcmogul

I would prefer ~/.local/share/wpilib/<year> over the ~/wpilib directory. There is currently no globally accessible directory either so this isn't something that is a must, for a new location (I would think?)

modelmat avatar Nov 19 '19 08:11 modelmat

It is definitely too late to change anything for 2020. I (and others) don't like . folders because the hidden property is actually very difficult to address with debugging, especially nested like that. So we might be able to bring this up again next summer, but I'm not sure how far it would get.

ThadHouse avatar Nov 19 '19 08:11 ThadHouse

Yeah, okay. Should I create another issue tracking this?

modelmat avatar Nov 19 '19 08:11 modelmat

No. We can reopen this one, but it definitely will not be looked at until next summer. I doubt it even then though, because I don't want to change the location 3 times in 3 years. Its only 1 extra folder in the home directory, which is much better then the 1 per year we had.

ThadHouse avatar Nov 19 '19 08:11 ThadHouse

Because of the cancellation of the 2020 season, and our goal to make things as painless as possible, there is 0 chance anything will happen for 2021. Just FYI.

ThadHouse avatar Jul 10 '20 15:07 ThadHouse

More than two years later, do we have any intention of changing the install directory? If not, I suggest closing this issue as a wontfix.

Starlight220 avatar Sep 20 '22 16:09 Starlight220