Page 1 of 1

idf docker git error

Posted: Wed May 01, 2024 3:01 pm
by Lagunax
hi tryin to use docker container, but got error while build:

Code: Select all

-- Found Git: /usr/bin/git (found version "2.34.1") 
CMake Error at /opt/esp/idf/tools/cmake/third_party/GetGitRevisionDescription.cmake:78 (configure_file):
  Operation not permitted
manualy git works fine inside container

Code: Select all

I have no name!@4ee7c7d66110:/project$ git describe
3.0.0-7-ga7d4d71
how to avoid this errors?

Re: idf docker git error

Posted: Wed May 01, 2024 5:34 pm
by liaifat85
Verify the user permissions within the Docker container. If you're running commands as a non-root user, ensure that the user has sufficient permissions to execute Git commands and perform file operations.

Re: idf docker git error

Posted: Thu May 02, 2024 6:27 pm
by Lagunax
found solution. rebuilt container, updated git inside it. now works fine
[closed]

also need to delete 'build' folder before running docker on folder because it can't make ln to error.c file in build subfolders (it exists and builder jast exited with error. idf.py clean stops on same step)