esp-rs / rust-build

Installation tools and workflows for deploying/building Rust fork esp-rs/rust with Xtensa and RISC-V support
MIT License
249 stars 35 forks source link

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

Closed jdfreder closed 1 month ago

jdfreder commented 1 month ago

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 commented 1 month ago

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