Skip to content

[plugins] Ensure plugin packages are in nix profile #1367

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

Merged
merged 4 commits into from
Aug 11, 2023

Conversation

mikeland73
Copy link
Contributor

Summary

While working on #1361 I noticed that we were not installing plugin packages (usually just custom flakes) to profile. This means in cases like the PHP plugin, the binary int he profile was wrong because it did not include extensions. Everything was still working as expected because bin wrappers would point to the correct binary but this is bad for 2 reasons:

  • We want to get rid of bin wrappers
  • It is quite fragile for binaries in profile to be wrong binaries

This PR fixes it by ensuring plugin packages are installed. I also refactored some function names that were out of date.

TODO: We currently output text when installing plugin packages that is not very user friendly. We could improve it.

How was it tested?

➜  devbox git:(landau/install-plugin-packages-to-profile) devbox run -c examples/development/php/php8.1 php -m | grep imagick
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating autoload files
imagick

@mikeland73 mikeland73 requested review from savil and mohsenari August 11, 2023 00:42
Copy link
Collaborator

@savil savil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we revert the function renames? My PR from yesterday is already renaming them:
#1357

Copy link
Collaborator

@savil savil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! would be nice to revert the function renames to minimize merge-conflicts with my PR...

@mikeland73 mikeland73 merged commit 7ada96d into main Aug 11, 2023
@mikeland73 mikeland73 deleted the landau/install-plugin-packages-to-profile branch August 11, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants