Skip to content

Commit

Permalink
Document that parent directories of outputs are created implicitly.
Browse files Browse the repository at this point in the history
When implementing Buildbarn's worker, I noticed that there exists the
assumption in build rules that directories under bazel-out/ are already
created prior to execution, even if they are not part of the input root.

As I suspect that getting rid of this assumption is both unrealistic and
undesirable, let's document this instead.

Mentioned in: bazelbuild#40
  • Loading branch information
Ed Schouten committed Dec 23, 2018
1 parent ed48498 commit 056edc8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/bazel/remote/execution/v2/remote_execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ message Command {
//
// An output file cannot be duplicated, be a parent of another output file, or
// have the same path as any of the listed output directories.
//
// Directories leading up to the output files are created by the worker prior
// to execution, even if they are not explicitly part of the input root.
repeated string output_files = 3;

// A list of the output directories that the client expects to retrieve from
Expand All @@ -468,6 +471,10 @@ message Command {
//
// An output directory cannot be duplicated or have the same path as any of
// the listed output files.
//
// Directories leading up to the output directories (but not the output
// directories themselves) are created by the worker prior to execution, even
// if they are not explicitly part of the input root.
repeated string output_directories = 4;

// The platform requirements for the execution environment. The server MAY
Expand Down

0 comments on commit 056edc8

Please sign in to comment.