Skip to main content

job_to_json

Function job_to_json 

Source
pub fn job_to_json(job: &Job) -> Result<Value, String>
Expand description

Renders one job as the line a helper reads.

ยงErrors

The job names a directory that is not UTF-8, which JSON cannot carry. Refused rather than lossily converted: a helper that runs the job in a path spelled differently returns a verdict about a different tree, and it would be index-aligned and therefore believed.