`idf.py reconfigure` Not Updating Git-Only Components

gamename
Posts: 31
Joined: Fri Dec 08, 2023 11:33 pm

`idf.py reconfigure` Not Updating Git-Only Components

Postby gamename » Tue Jul 23, 2024 7:15 pm

Hi,

I am having trouble getting git-only components to update in my projects.

### Background:
I have several private components on git that I add to my projects by editing my project `idf_components.yml` file.
After running `idf.py reconfigure`, a new component is added to my `managed_components` directory. So far, so good.

### The Issue:
When I commit a change to `gecl-logger-manager` (for example), the changes are not picked up by my project if I simply
run `idf.py reconfigure` again.

To update the component, I have to:
1. Comment out the entire entry for `gecl-logger-manager` in the project's `idf_components.yml` file.
2. Run `idf.py reconfigure` so the subdir is removed from `managed_components`.
3. Uncomment the entry in `idf_components.yml`.
4. Run `idf.py reconfigure` again so the component is re-added to the `managed_components` subdir.

This process updates the component to the current commit point.

### Question:
What am I doing wrong? How can I get components to update more dynamically?

### The Files

Here is partial content of the parent project file:
```yaml
## IDF Component Manager Manifest File
dependencies:
## Required IDF version
idf:
version: ">=4.1.0"
gecl-logger-manager:
git: https://github.com/gamename-esp32-compo ... anager.git
version: "*"
# ...other components...
```

For completeness, here is the component's `idf_components.yml` file:
```yaml
version: "1.0.0"
description: "Logger manager component for ESP32"
url: https://github.com/gamename-esp32-compo ... er-manager
dependencies:
idf: ">=4.1"
```

wayinone
Posts: 2
Joined: Tue Aug 20, 2024 9:22 am

Re: `idf.py reconfigure` Not Updating Git-Only Components

Postby wayinone » Wed Sep 18, 2024 1:19 am

A little late to reply. I had the same issue before. I remember the solution is to delete the `dependencies.lock` file and do`idf.py reconfigure`.

abuhanzala
Posts: 5
Joined: Sat Sep 14, 2024 8:46 am

Re: `idf.py reconfigure` Not Updating Git-Only Components

Postby abuhanzala » Wed Sep 18, 2024 7:08 am

Sounds frustrating! Instead of manually removing and re-adding the component, try using idf.py fullclean before running idf.py reconfigure—it clears out cached components and might help pull the latest changes from git. Also, make sure your idf_components.yml is set to track the latest commit or tag. Hope this helps!

MicroController
Posts: 1552
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: `idf.py reconfigure` Not Updating Git-Only Components

Postby MicroController » Wed Sep 18, 2024 11:10 am

I assume the component manager sees no reason to re-download a component when it already finds the same version of that component locally. I.e., in order for dependency managers to pick up any changes you made to a component, the change should be reflected in a new version number of that component.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], Majestic-12 [Bot] and 220 guests