Skip to content

Commit

Permalink
修复了 build
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Dec 6, 2023
1 parent af474ee commit 3a39c7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cftool/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from zipfile import ZipFile
from tempfile import mkdtemp

from .misc import shallow_copy_dict
from .misc import WithRegister
from .misc import ISerializable
from .misc import ISerializableDataClass
Expand Down Expand Up @@ -191,7 +192,7 @@ def build(self, *blocks: TBlock) -> None:
previous: Dict[str, TBlock] = self.block_mappings
for block in blocks:
check_requirement(block, previous)
block.previous = previous
block.previous = shallow_copy_dict(previous)
self.before_block_build(block)
block.build(self.config)
self.after_block_build(block)
Expand Down

0 comments on commit 3a39c7d

Please sign in to comment.