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

Add remove-dependency CLI command (PACMAN-871) #59

Open
anujdeshpande opened this issue Apr 18, 2024 · 6 comments
Open

Add remove-dependency CLI command (PACMAN-871) #59

anujdeshpande opened this issue Apr 18, 2024 · 6 comments
Labels
Type: Feature Request New feature or request
Milestone

Comments

@anujdeshpande
Copy link

Is your feature request related to a problem?

Once I add a managed component, I can't find a method to remove it from my app.

Describe the solution you'd like.

idf.py remove-dependency

Describe alternatives you've considered.

Manually deleting - but it comes back when I do a build.

Additional context.

ESP-IDF v5.1.3

@anujdeshpande anujdeshpande added the Type: Feature Request New feature or request label Apr 18, 2024
@github-actions github-actions bot changed the title Remove a managed component Remove a managed component (IDFGH-12644) Apr 18, 2024
@igrr
Copy link
Member

igrr commented Apr 18, 2024

Hi @anujdeshpande!
Probably you need to check which idf_component.yml file contains this component, and remove it from there. If you used idf.py add-dependency command without specifying the component where the dependency is added, the dependency would be added to the main component. So you need to check the main/idf_component.yml file.

@anujdeshpande
Copy link
Author

Yeah I figured that part with grep - but it would be simpler to remove a dependency using the same way I added it. I don't think this is a bug - so marked it as a feature request.

@igrr igrr transferred this issue from espressif/esp-idf Apr 18, 2024
@kumekay kumekay changed the title Remove a managed component (IDFGH-12644) Add remove-dependency CLI command (IDFGH-12644) Apr 22, 2024
@kumekay kumekay added this to the 2.0.0 milestone Apr 22, 2024
@kumekay kumekay changed the title Add remove-dependency CLI command (IDFGH-12644) Add remove-dependency CLI command (PACMAN-871) Jun 10, 2024
@youngguyl
Copy link

Hi, @anujdeshpande
How do you solve it? I have the same problem, I use idf.py add-dependency "espressif/button^3.2.0" in one project before.
No matter I changed to any other projects, will download this components automatic while build. I want to know how to remove it.
Thanks.

@kumekay
Copy link
Collaborator

kumekay commented Aug 9, 2024

@youngguyl There should be a list of dependencies in main/idf_component.yml inside your project, just remove the line from the file.

@youngguyl
Copy link

youngguyl commented Aug 9, 2024

@kumekay thanks for your quick reply.
I checked my main folder, I deleted the idf_component.yml and dependencies.lock, sdkconfig, build and managed componentsfolder as well, if I try to build the project, the component will be downloaded automaticly. the problem with gt911 component.

I tried to create a project by idf.py create-project command. still download the lcd and gt911 components.

I deleted the folder esp_idf/component/esp_lcd and it works now.

@kumekay kumekay modified the milestones: 2.0.0, 2.1.0 Aug 22, 2024
@baldhead69
Copy link

Yeah I figured that part with grep - but it would be simpler to remove a dependency using the same way I added it. I don't think this is a bug - so marked it as a feature request.

Yes. I would like that feature too.

@kumekay kumekay modified the milestones: 2.1.0, 2.2.0 Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants