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"
```
`idf.py reconfigure` Not Updating Git-Only Components
Re: `idf.py reconfigure` Not Updating Git-Only Components
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`.
Re: `idf.py reconfigure` Not Updating Git-Only Components
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!
-
- Posts: 1725
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: `idf.py reconfigure` Not Updating Git-Only Components
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: Bing [Bot] and 335 guests