Fix hotpatched assets (#4326)
* wip: fixes to get docsite working again * Fix asset location with PIC in hot patched builds * Add an hidden cli flag to exit early in hot patch tests on failure * add a test for hot patching with assets * fix clippy * fix looks_like_manganis_symbol * longer timeout for hot patching in CI * log page content * log assets * Log asset after write * record a playwright trace * Explicitly enable cargo incremental for hot patching * fix retry for patch test * reset asset * disable hot patching test for new exports * add nightly playwright * use different toolchain names * use beta instead of nightly for less thrashing * add failing test * workaround hot reloading bug * restore swapping asset tests * add toolchain --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
6cc379718b
commit
2071be2b67
20 files changed
+365
-125
No files matched your search
@@ -587,13 +587,18 @@ impl AppBuilder {
|
||||
let original = self.build.main_exe();
|
||||
let new = self.build.patch_exe(res.time_start);
|
||||
let triple = self.build.triple.clone();
|
||||
let original_artifacts = self.artifacts.as_ref().unwrap();
|
||||
let asset_dir = self.build.asset_dir();
|
||||
|
||||
for bundled in res.assets.assets() {
|
||||
let original_artifacts = self.artifacts.as_mut().unwrap();
|
||||
|
||||
if original_artifacts.assets.contains(bundled) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// If this is a new asset, insert it into the artifacts so we can track it when hot reloading
|
||||
original_artifacts.assets.insert_asset(*bundled);
|
||||
|
||||
let from = dunce::canonicalize(PathBuf::from(bundled.absolute_source_path()))?;
|
||||
|
||||
let to = asset_dir.join(bundled.bundled_path());
|
||||
|
||||
Reference in new issue
Block a user