-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Implement repository_ctx.read()
for reading local files.
#7309
Conversation
8b33653
to
ff49b52
Compare
Let's discuss the use-case for this in #3766. |
...in/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java
Outdated
Show resolved
Hide resolved
@dslomov: ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should completely remove encoding parameter from readFile
...in/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java
Outdated
Show resolved
Hide resolved
@c-parsons please take a look from Starlark API perspective |
ff49b52
to
c1f1937
Compare
(rebased to current master HEAD) |
Latest commit addresses review feedback. PTAL. |
repository_ctx.read()
for reading local files.repository_ctx.read_file()
for reading local files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(see comments in conversation)
repository_ctx.read_file()
for reading local files.repository_ctx.read()
for reading local files.
dd06445
to
894e968
Compare
CI is failing due to what looks like a bazel mirror outage. |
src/main/java/com/google/devtools/build/lib/bazel/debug/workspace_log.proto
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(see above for comments)
038cf7a
to
43413bc
Compare
43413bc
to
8e94d66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failures look relevant?
Thanks, didn't see that test earlier. I fixed up the calls to It passes locally. BuildKite CI seems fairly slow, so if it goes red again then I'll try again tonight. |
@dslomov Tests are green. |
@brandjon had stylistic comments on the internal review - please review this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm no expert on the specific code being touched by this PR, but I have some readability concerns.
Fixes #3766