Closed cyplo closed 6 years ago
cc @majorz
It is very strange that you see ARG rust_revision="1.29.1"
reported on push. Let's try to find out more about this as this would be a bigger issue I think.
@cyplo I am not reproducing that behavior. Could it be that you had a Dockerfile.armv7hf
that was used instead in the same folder?
Not sure - I saw this behavior when testing #13 - did a singular git push
to a repository of an application that already contained the previous version of the example. Could it be the cause ? E.g. some cache being spoiled @majorz ?
I spent almost 2 days with the caching and I've found that it's hard to make it working when I constantly change Dockerfile, etc. I ended up testing it via new app id & project every single time I made bigger changes to avoid any backend issues. It worked. This leads to an idea that smth can be wrong much deeper. Just thinking aloud.
Oh, I wrote a message here, but now I see I did not post it and is lost :/
I think the Rust caching should not be an issue. It looks quite solid and shrinks the downloaded image on the device very nicely + does the dependency caching which is really nice!
It looks like we are using an older rustup link and also the argument is now different. That should at least solve the reported problem.
I would like to take a look into this as a part of the Friday project - this Friday.
I'm playing with possible solutions right now - thinking of showcasing standard rust-toolchain
file usage in the example.
@cyplo go with rust-toolchain
. I'd like to see it everywhere if specific Rust version is required.
The version set currently in
Dockerfile.template
is1.29.2
. In the logs I'm seeing1.29.1 is the previous version - is this expected ? Then in the logs much later:
it should be 1.29.2 instead of stable - it seems to be ignoring the version number altogether maybe ?