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

how can I change the default lock file version? (PACMAN-995) #76

Closed
1 task done
mksafavi opened this issue Sep 25, 2024 · 4 comments
Closed
1 task done

how can I change the default lock file version? (PACMAN-995) #76

mksafavi opened this issue Sep 25, 2024 · 4 comments
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@mksafavi
Copy link

The Component Manager version

2.0.2

ESP-IDF Version

v5.3.0

python Version

3.12.4

Operating System

Linux

Browser (for https://components.espressif.com Issues)

No response

Description

After updating IDF to version 5.3, the dependencies.lock schema version changed to 2.0.0.

It modified the dependencies.lock like changing service_url to registry_url and so on.... which is fine, but on the official docker image, it still uses the first version schema and reverts the file back. I noticed this when my build pipeline added -dirty to the versions.

I couldn't find the documentation on how to set the lock version.
Manually changing 2.0.0 to 1.0.0 gives this warning:

NOTICE: Current idf-component-manager default lock file version is 2.0.0, but found 1.0.0 in 
<path/to/project>/dependencies.lock. Recreating lock file with the current version.

So I assume there is a way to set this?

To Reproduce

-

Expected behaviour

setting the default lock version.

Additional info

No response

I have checked existing issues and online Documentation

  • I confirm I have checked existing issues and online Documentation.
@mksafavi mksafavi added the Status: Awaiting triage Issue is waiting for triage label Sep 25, 2024
@github-actions github-actions bot changed the title how can I change the default lock file version? how can I change the default lock file version? (PACMAN-995) Sep 25, 2024
@hfudev
Copy link
Member

hfudev commented Sep 25, 2024

Hi @mksafavi I can help provide a workaround:

if you want to set the lock version to 1.0. You need to downgrade idf-component-manager to 1.x.

pip install "idf-component-manager<2"

could you help share the full file path which is being modified in the official docker image? We could see what we can do.

@mksafavi
Copy link
Author

if you want to set the lock version to 1.0. You need to downgrade idf-component-manager to 1.x.

pip install "idf-component-manager<2"

Oh! It makes sense now. I thought the new idf-component-manager supported both of the schemas.
On my machine with idf v5.3 the version 2.0.2 of component manager is installed. The v5.3 container has 1.5.3 while v5.3.1 has 2.0.3.

It seems like my distro is shipping different versions. So the issue isn't from here ✌️

I looked in the esp-idf repository and the requirement.txt files don't contain the version limits. The docs mentioned that they are stored in espidf.constraints.*.txt.
In the docker container I can find this file: ./opt/esp/espidf.constraints.v5.3.txt

Is this file available in the Github repository?
We might be able to use it to match the container versions.

Thank you!

@hfudev
Copy link
Member

hfudev commented Sep 25, 2024

@mksafavi you may download the constraint files here: https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.3.txt

idf-component-manager>=1.2,<3

@mksafavi
Copy link
Author

@mksafavi you may download the constraint files here: https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.3.txt

idf-component-manager>=1.2,<3

Thanks 👍
I think we can close this issue.

@hfudev hfudev closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

2 participants