Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gazelle_runner: allow usage of transitive runfiles #1686

Closed

Conversation

stevebarrau
Copy link
Contributor

What type of PR is this?

Bug fix

What package or component does this PR mostly affect?

The gazelle bash runner.

What does this PR do? Why is it needed?

This is a rebase of the work from @greenboxal to support the gazelle java extension use of runfiles to pull in the Java parser.

Other notes for review

Closes #828

This is a rebase of the work from @greenboxal to support the gazelle
java extension use of runfiles to pull in the Java parser.

Closes bazelbuild#828
@stevebarrau
Copy link
Contributor Author

@robfig @fmeum is this something you could have a look at? This would support the merge of bazel-contrib/rules_jvm#216

@@ -27,7 +27,19 @@ source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \

@@GENERATED_MESSAGE@@

set -euo pipefail
# --- begin runfiles.bash initialization v3 ---
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already loaded this library in line 15. What does this duplication achieve?

# --- end runfiles.bash initialization v3 ---

# Export runfile vars so sub-processes can access them
runfiles_export_envvars
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is invoked in line 113. Do we have to move it to an earlier line?

@stevebarrau
Copy link
Contributor Author

@fmeum it looks like I missed e3deb49 and it being part of 0.33+ as part of my testing. This is not required and it works fine; thanks for the review.

We can probably also close #828 as being addressed by e3deb49

@stevebarrau stevebarrau deleted the pass-runfiles-to-the-runner branch December 13, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants