Bazel: Document runfiles

Created on 14 Oct 2019  路  11Comments  路  Source: bazelbuild/bazel

Description of the problem / feature request:

Document runfiles resolution.

Feature requests: what underlying problem are you trying to solve with this feature?

I need to know how to access data files at runtime.

Specifically in the following scenarios:

  1. During bazel build action
  2. During bazel test
  3. During bazel run
  4. During direct executable invocation

And

  1. When invoked directly.
  2. When invoked indirectly as a data-dependency of another executable.

And

  1. On Linux/Mac (symlink tree and manifest)
  2. On Windows (manifest)
  3. With sandboxing (symlink tree)

Have you found anything relevant by searching the web?

https://docs.bazel.build/versions/master/skylark/rules.html#runfiles

http://jayconrod.com/posts/108/writing-bazel-rules--data-and-runfiles

https://github.com/bazelbuild/bazel/issues/4460

https://docs.google.com/document/d/e/2PACX-1vSDIrFnFvEYhKsCMdGdD40wZRBX3m3aZ5HhVj4CtHPmiXKDCxioTUbYsDydjKtFDAzER5eg7OjJWs3V/pub

Any other information, logs, or outputs that you want to share?

Documentation should include:

  1. The generic resolution algorithm
  2. Instructions for using language-specific libraries implementing the algorithm
  3. Ideally some brief explanation/motivation why this is so dang hard.
P3 team-Documentation documentation (cleanup)

Most helpful comment

Sorry about my recent silence. I have not forgotten about this issue, and I intend to work more on it this week.

All 11 comments

Bump

Possible duplicate of #4054

Cc @laszlocsomor @philwo

Paul is right.
I'll work on it.

Thanks Laszlo!

@laszlocsomor that's good stuff; I hope you will have time for more.

I have found additional documentation in the recent and very informative Bazel guide by Lukacs.

https://docs.google.com/document/d/1wzjTCuqXNKBlEEHCVw17j7kil2qx04sBsMZCTZzOJj0/edit#heading=h.rpcqrjsxgnpk

Sorry about my recent silence. I have not forgotten about this issue, and I intend to work more on it this week.

Finally found some time -- here's more update, starting to dig into the messy details.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GaofengCheng picture GaofengCheng  路  3Comments

meteorcloudy picture meteorcloudy  路  3Comments

ajaysaini-sgvu picture ajaysaini-sgvu  路  3Comments

cyberbono3 picture cyberbono3  路  3Comments

mdzoba picture mdzoba  路  3Comments