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

Globally activate packages in a separate cache from the default pub cache #12

Open
evanweible-wf opened this issue Jun 14, 2024 · 0 comments

Comments

@evanweible-wf
Copy link
Contributor

dpx uses dart pub global activate to globally install package before running them. Because of this, dpx has a side effect of mutating the user's global cache, which may be unexpected or at least unwanted.

It'd be ideal if dpx could use its own pub cache to install packages and run their executables, but it is not as simple as setting the PUB_CACHE environment variable because that variable would affect the subprocess that dpx starts when executing the package executable.

If we can find a way to leverage a separate pub cache for installing packages while still leveraging the default pub cache when running the command, then I think we can still make dpx commands work as expected without the side effect of mutating the user's default pub cache and their globally activated packages.

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

No branches or pull requests

1 participant