pub fn once(&mut self) -> Result<BuildResults, BuildError> {
        let build = builder::run(&self.project.nix_file, &self.project.cas)?;
        let roots = Roots::from_project(&self.project);

        let paths = build.paths;
        debug!("original paths: {:?}", paths.len());

        let paths = reduce_paths(&paths);
        debug!("  -> reduced to: {:?}", paths.len());

        debug!("named drvs: {:#?}", build.output_paths);

        let event = BuildResults {
            output_paths: roots.create_roots(build.output_paths)?,
        };

        // add all new (reduced) nix sources to the input source watchlist
        self.watch.extend(&paths.into_iter().collect::<Vec<_>>())?;

        if build.exec_result.success() {
            Ok(event)
        } else {
            Err(BuildError::Recoverable(BuildExitFailure {
                log_lines: build.log_lines,
            }))
        }
    }
/// Execute a single build of the environment.
///
/// This will create GC roots and expand the file watch list for
/// the evaluation.
Execute a single build of the environment.
This will create GC roots and expand the file watch list for
the evaluation.
Execute a single build of the environment . This will create GC roots and expand the file watch list for the evaluation .
pub fn once(&mut self) -> Result<BuildResults, BuildError> {
        let build = builder::run(&self.project.nix_file, &self.project.cas)?;
        let roots = Roots::from_project(&self.project);
        let paths = build.paths;
        debug!("original paths: {:?}", paths.len());
        let paths = reduce_paths(&paths);
        debug!("  -> reduced to: {:?}", paths.len());
        debug!("named drvs: {:#?}", build.output_paths);
        let event = BuildResults {
            output_paths: roots.create_roots(build.output_paths)?,
        };
        // add all new (reduced) nix sources to the input source watchlist
        self.watch.extend(&paths.into_iter().collect::<Vec<_>>())?;
        if build.exec_result.success() {
            Ok(event)
        } else {
            Err(BuildError::Recoverable(BuildExitFailure {
                log_lines: build.log_lines,
            }))
        }
    }
pub fn once ( & mut self ) -> Result < BuildResults , BuildError > { let build = builder :: run ( & self . project . nix_file , & self . project . cas ) ? ; let roots = Roots :: from_project ( & self . project ) ; let paths = build . paths ; debug ! ( " " paths len ( ) ) ; let paths = reduce_paths ( & paths ) ; debug ! ( " " paths len ( ) ) ; debug ! ( " " build output_paths ) ; let event = BuildResults { output_paths : roots . create_roots ( build . output_paths ) ? , } ; // add all new (reduced) nix sources to the input source watchlist self . watch . extend ( & paths . into_iter ( ) . collect :: < Vec < _ > > ( ) ) ? ; if build . exec_result . success ( ) { Ok ( event ) } else { Err ( BuildError :: Recoverable ( BuildExitFailure { log_lines : build . log_lines , } ) ) } }
Execute a single build of the environment.
Execute a single build of the environment .
&mut self