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

Anyway to prevent the docker images from doing a git clone? #271

Closed
jdfreder opened this issue Aug 12, 2024 · 1 comment
Closed

Anyway to prevent the docker images from doing a git clone? #271

jdfreder opened this issue Aug 12, 2024 · 1 comment

Comments

@jdfreder
Copy link

Hi ESP Rust community,

I noticed that when I build a hello world project (e.g. something generate from one of the cargo generate rust esp templates), that the build fetches content from a git repository somewhere. I was hoping I could have a hermetic build, but I'm not sure whether that's possible. Unfortunately the git clone from the internet causes the build to fail sporadically, as seen below:

image

Is there a recommended way to have a fully offline hermetic build using one of the docker images?

Best,
Jon

@SergioGasquez
Copy link
Member

Hi!

I assume you are using esp-idf-template, which uses the std approach (see https://docs.esp-rs.org/book/overview/index.html), if you use esp-template (no_std approach) you won't need to clone anything.

Any std project, requires ESP-IDF source code (which is what your git clone is getting), either you let esp-idf-sys clone it and install it for you, or you can do it manually and configure your project to use it.

For questions, I would recommend using the Matrix channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants