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

mpm collections: allow removing things from path #73

Open
mobeets opened this issue Jun 9, 2020 · 0 comments
Open

mpm collections: allow removing things from path #73

mobeets opened this issue Jun 9, 2020 · 0 comments

Comments

@mobeets
Copy link
Owner

mobeets commented Jun 9, 2020

Let's say you have a collection called test, and you 'init' it:

>> mpm init -c test
Using collection "test"
   Adding to path: /Users/mobeets/code/mpm/mpm-packages/mpm-collections/test/cbrewer
   Added paths for 1 package(s).

If collections are meant to be self-contained (like virtual environments), then before init-ing, we should removing any paths added from the previous collection (e.g., the default one). This would require:

  • saving state about which collection is currently init'd
  • when a new collection is init'd: 1) rm from the path any packages that were part of the previous collection, and then 2) update the state about which collection is currently init'd

We should probably also add a flag that says to not rm paths. For example, if you want to be able to init multiple collections in series.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant