We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c48e0f4 commit ce2bedcCopy full SHA for ce2bedc
src/docbuilder/rustwide_builder.rs
@@ -70,8 +70,12 @@ impl RustwideBuilder {
70
};
71
builder = builder.sandbox_image(image);
72
}
73
+
74
+ let artifact_cache = ArtifactCache::new(config.prefix.join("artifact_cache"))?;
75
76
if cfg!(test) {
77
builder = builder.fast_init(true);
78
+ artifact_cache.purge()?;
79
80
81
let workspace = builder.init().map_err(FailureError::compat)?;
@@ -93,7 +97,7 @@ impl RustwideBuilder {
93
97
Ok(RustwideBuilder {
94
98
workspace,
95
99
toolchain,
96
- artifact_cache: ArtifactCache::new(config.prefix.join("artifact_cache"))?,
100
+ artifact_cache,
101
config,
102
db: context.pool()?,
103
storage: context.storage()?,
0 commit comments