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

feat: ask to overwrite or not for duplicate brick name #1310

Open
jhj0517 opened this issue Apr 25, 2024 · 0 comments
Open

feat: ask to overwrite or not for duplicate brick name #1310

jhj0517 opened this issue Apr 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jhj0517
Copy link

jhj0517 commented Apr 25, 2024

Description
Hi, Thanks for wonderful project.
It would be good if mason_cli ask to overwrite or not for duplicate brick name.

Steps To Reproduce

  1. install brick from brick.hub
mason add -g very_good_core
  1. install another brick from local with duplicate name
mason add -g very_good_core --path ./
  1. list bricks
mason ls -g
C:\Users\user\AppData\Local\Mason\Cache\global
└── very_good_core 0.6.1 -> registry.brickhub.dev

It doesn't overwrite with local brick.
However, if a local brick is installed first and then a brick from brick.hub is installed later, it overwrites the existing local brick.
Maybe bricks from brick.hub have higher priority over local bricks? It would be good if mason_cli would ask to overwrite or not for duplicate brick names.

For example, the 'very_good_core' already exists. Do you want to overwrite it? (y/n)

@felangel felangel added the enhancement New feature or request label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants