You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the "more complex example" case (which actually needs the old metadata to compare against), the new metadata is never written, so the layer will always be invalidated.
It also feels like forgetting to include layer.write_metadata() is something end users might do too - so perhaps we need to emphasise the need to include it in as many parts of the docs as possible?
The text was updated successfully, but these errors were encountered:
In the docs for the new struct API, it seems the
cached_layer()
example are missing thelayer.write_metadata()
calls.For example in:
https://docs.rs/libcnb/latest/libcnb/build/struct.BuildContext.html#method.cached_layer
In the "more complex example" case (which actually needs the old metadata to compare against), the new metadata is never written, so the layer will always be invalidated.
It also feels like forgetting to include
layer.write_metadata()
is something end users might do too - so perhaps we need to emphasise the need to include it in as many parts of the docs as possible?The text was updated successfully, but these errors were encountered: