./run
spends a lot of time compiling CLI after switching branch
#6230
-
For me (I'm using Linux), every time I switch branch, the following four binaries are rebuilt, every single time:
The process takes up to 30 minutes - I'm not sure whether this is a Linux-only issue, or whether I've set up my environment wrong.
(Note also the sizes - are they all supposed to be ~500MB?) -rwxr-xr-x 2 me me 582M Mar 23 23:23 enso_build_cli-d493a23d94f2e700
-rwxr-xr-x 2 me me 560M Mar 23 23:23 enso_remove_draft_releases-5f6afebbccda6fa2
-rwxr-xr-x 2 me me 551M Mar 23 23:23 enso_disable_wasm_opt-1e087024e9a32d1b
-rwxr-xr-x 2 me me 455M Mar 23 23:23 enso_build4-9b4fafa26c07d4e4 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
@mwu-tow I was told you would be the person to contact about this - do you know why this is happening (or whether this is supposed to happen)? |
Beta Was this translation helpful? Give feedback.
-
The build script should not recompile, unless there is a change in sources. I'd expect that it was either modified, or some of its dependencies were modified (as it shared the code with some parts of GUI). But if there was no change in dependencies, the build script should not recompile. Some team members |
Beta Was this translation helpful? Give feedback.
-
So it turns out it was an issue with I think I more or less did the bare minimum to set things up, because I wasn't expecting to have to compile Rust sources |
Beta Was this translation helpful? Give feedback.
So it turns out it was an issue with
cargo watch
- maybe the importance of usingcargo-watch-plus
should be highlighted in CONTRIBUTING.md?I think I more or less did the bare minimum to set things up, because I wasn't expecting to have to compile Rust sources