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

refactor(import): better handling of duplicate packages #156

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

nikoksr
Copy link
Collaborator

@nikoksr nikoksr commented Jul 29, 2020

Summary

When importing a package with a duplicate label (one that already exists
in storage) proji used to just cancel the import. You had to alter the
label of the existing package in order for you to be able to import the
new package.
Now, when proji detects a duplicate label import it will export the
config of the new package into the user cwd. The user can edit the label
in the config to his liking and import the config afterwards.

Proposed Changes

  • export config of new package when duplicate label is detected

Resolved Issues

Closes #138

When importing a package with a duplicate label (one that already exists
in storage) proji used to just cancel the import. You had to alter the
label of the existing package in order for you to be able to import the
new package.
Now, when proji detects a duplicate label import it will export the
config of the new package into the user cwd. The user can edit the label
in the config to his liking and import the config afterwards.

Closes #138
@nikoksr nikoksr merged commit c846aff into master Jul 29, 2020
@nikoksr nikoksr deleted the handle-duplicate-packages branch July 29, 2020 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow package replacements
1 participant