idf docker git error

Lagunax
Posts: 21
Joined: Mon Sep 09, 2019 8:24 pm

idf docker git error

Postby Lagunax » Wed May 01, 2024 3:01 pm

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?

liaifat85
Posts: 200
Joined: Wed Dec 06, 2023 2:46 pm

Re: idf docker git error

Postby liaifat85 » Wed May 01, 2024 5:34 pm

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.

Lagunax
Posts: 21
Joined: Mon Sep 09, 2019 8:24 pm

Re: idf docker git error

Postby Lagunax » Thu May 02, 2024 6:27 pm

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)

Who is online

Users browsing this forum: Bing [Bot] and 159 guests