Skip to content
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

feat: migrate from flat to hierarchical install strategy #944

Closed
wants to merge 3 commits into from

Conversation

mistydemeo
Copy link
Contributor

Before this commit, we had two different installation layouts:

  • Cargo home produced an FHS-style installation layout, with binaries installed into the bin directory within an install prefix.
  • Env subdir and home subdir produced a flat installation layout, with binaries and all other files placed in a single directory.

Going forward, it will be advantageous for us to have a unified strategy where we can predict the layout of an install directory no matter which path we're following.

This doesn't just change the default, but also performs a migration: any binaries that this installer would install that exist in the old default path are migrated to the new path before the installation itself begins.

We'll want to make sure this gets some testing before merging, though the "ruin me" env var tests in CI should also give us some active testing.

Fixes #934.

@mistydemeo mistydemeo requested a review from Gankra April 17, 2024 21:58
@mistydemeo mistydemeo force-pushed the migrate-install-strategy branch 2 times, most recently from a3aa730 to 48520dd Compare April 17, 2024 22:23
Before this commit, we had two different installation layouts:

* Cargo home produced an FHS-style installation layout, with binaries
  installed into the `bin` directory within an install prefix.
* Env subdir and home subdir produced a flat installation layout, with
  binaries and all other files placed in a single directory.

Going forward, it will be advantageous for us to have a unified strategy where we
can predict the layout of an install directory no matter which path we're following.

This doesn't just change the default, but also performs a migration: any binaries that
this installer would install that exist in the old default path are migrated to the new
path before the installation itself begins.
@mistydemeo mistydemeo force-pushed the migrate-install-strategy branch 2 times, most recently from 3eedce9 to 6c7a842 Compare April 17, 2024 23:17
@Gankra
Copy link
Member

Gankra commented Apr 23, 2024

closing this for now

@Gankra Gankra closed this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

normalize install dir structure
2 participants