Skip to content

[plugins] Ensure plugin flakes get upgraded on every install #1687

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 2 commits into from
Dec 20, 2023

Conversation

mikeland73
Copy link
Contributor

Summary

Run nix profile upgrade on any virtenv (plugin) flakes after any package is installed. This is a bit blunt, but works. (ideally we determine which plugin is being touched and we only upgrade that flake, but that's a bit tricky)

Fixes #1680

How was it tested?

devbox add php
devbox add php82Extensions.xdebug
devbox run php -m | grep xdebug

@mikeland73 mikeland73 requested review from savil and Lagoja December 20, 2023 19:19
@@ -390,6 +392,10 @@ func (d *Devbox) syncPackagesToProfile(ctx context.Context, mode installMode) er
return err
}
pending = append(pending, pkg)
} else if f, _ := pkg.FlakeInstallable(); d.pluginManager.PathIsInVirtenv(f.Ref.Path) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets not ignore the error here? f, _ := pkg.FlakeInstallable();

@mikeland73 mikeland73 merged commit 862bebe into main Dec 20, 2023
@mikeland73 mikeland73 deleted the landau/fix-plugins branch December 20, 2023 22:17
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.

[Bug]: PHP xdebug extension is not being loaded
2 participants