def register_target_artifact_metadata(self, target: str, metadata: dict):
        """Register the artifact metadata dictionary for a built target."""
        with self.context_lock:
            self.artifacts_metadata[target.name] = metadata
def register_target_artifact_metadata ( self , target : str , metadata : dict ) : with self . context_lock : self . artifacts_metadata [ target . name ] = metadata
Register the artifact metadata dictionary for a built target.