Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blog/2024-06-13-summer-buildbar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ technical problems, new developments with Bazel and Buildbarn.

And also have a few beers.

Feel welcome to come over on Wednesday 19 June 2024, from 16 to 20.
Feel welcome to come over this Wednesday the nineteenth of June from 16 to 20.

## Directions

Expand Down
10 changes: 10 additions & 0 deletions docs/tips/debug-bazel-go-projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,16 @@ end | psub ) $BUILDOZER -- -h

## Execroot trick

:::info
Alternative title: Execroot trap

Hedron Vision notes a flaw with this technique for long-lived access to files,
with go-to-definition in the IDE being a great such use-case,
the Execroot is regenerated for new builds, and only contains the files needed for that build.
See https://github.com/hedronvision/bazel-compile-commands-extractor/blob/main/ImplementationReadme.md#compilation-working-directory-and-the-external-link
for how they access generated source files with a symlink of `external` itself.
:::

If the execution directory of the program does not matter
you can execute it directly from the _execroot_,
where all source files are available as they were during compilation in the sandbox.
Expand Down