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

Move shared caching logic to public location, rename to DiffMigrateLayer #376

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
06d1282
Update magic_migrate version
schneems Dec 18, 2024
1379f9d
Update generic constraints
schneems Dec 18, 2024
8e5134b
Make deprecation more specific
schneems Dec 18, 2024
c78ccfd
Make Meta struct public
schneems Dec 18, 2024
7261492
Make invalid_metadata_action public
schneems Dec 18, 2024
a581bdb
Make restored_layer_action public
schneems Dec 18, 2024
a9c2982
Make cached_layer_write_metadata public
schneems Dec 18, 2024
bdcc00e
Remove strip_ansi helper method
schneems Dec 18, 2024
53b2f80
Move test
schneems Dec 18, 2024
7c48d5b
Move test
schneems Dec 18, 2024
09b7533
Add testing helper to cache_buddy
schneems Dec 18, 2024
e563c48
Move test
schneems Dec 18, 2024
7569ffc
Remove unused test module
schneems Dec 18, 2024
588755a
Update use statements
schneems Dec 18, 2024
1872084
Introduce CacheBuddy struct
schneems Dec 18, 2024
0d07a7b
Switch layer to CacheBuddy
schneems Dec 18, 2024
70a82d7
Switch layer to CacheBuddy
schneems Dec 18, 2024
f784b5a
Switch layer to CacheBuddy
schneems Dec 18, 2024
c3321e3
Remove unused function
schneems Dec 18, 2024
563cd27
Docs
schneems Dec 18, 2024
9246ab9
More docs
schneems Dec 18, 2024
45c63f3
Clarify intermediate struct docs
schneems Dec 18, 2024
f3c0822
Fix changelog reference
schneems Dec 18, 2024
580ca5b
Update changelog
schneems Dec 18, 2024
f5e8ab8
Remove unused `since` versions
schneems Dec 19, 2024
aa76d60
Move test helper into mod tests
schneems Dec 19, 2024
193ff02
Require explicit values
schneems Dec 19, 2024
c006c7c
Use `cached_layer` to match API with BuildContext::cached_layer
schneems Dec 20, 2024
99cbd2c
Use more informative name
schneems Dec 20, 2024
0b186fc
Rename module
schneems Dec 20, 2024
da814e9
Update magic_migrate
schneems Dec 20, 2024
91202e9
Remove unused imports
schneems Dec 20, 2024
ae49cf0
Update docs and add a tutorial
schneems Dec 21, 2024
b99f60a
Update cache_diff
schneems Dec 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions commons/src/layer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
mod configure_env_layer;
mod default_env_layer;

#[deprecated(
since = "0.0.0",
schneems marked this conversation as resolved.
Show resolved Hide resolved
note = "Use the struct layer API in the latest libcnb.rs instead"
)]
pub use self::configure_env_layer::ConfigureEnvLayer;

#[deprecated(
since = "0.0.0",
note = "Use the struct layer API in the latest libcnb.rs instead"
)]
pub use self::default_env_layer::DefaultEnvLayer;
4 changes: 0 additions & 4 deletions commons/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ pub mod cache;
pub mod display;
pub mod gem_version;
pub mod gemfile_lock;
#[deprecated(
since = "0.0.0",
note = "Use the struct layer API in the latest libcnb.rs instead"
)]
pub mod layer;
pub mod metadata_digest;
pub mod output;