-
Notifications
You must be signed in to change notification settings - Fork 143
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
Introduce a pure Swift runfiles library #1310
base: master
Are you sure you want to change the base?
Conversation
4e8b878
to
adda967
Compare
adda967
to
6518806
Compare
6518806
to
ca0cd32
Compare
Co-authored-by: Brentley Jones <[email protected]>
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.
Looking great, thank you for all the work on this. Some comments for an initial review
Co-authored-by: Luis Padron <[email protected]>
Co-authored-by: Luis Padron <[email protected]>
Co-authored-by: Luis Padron <[email protected]>
Co-authored-by: Luis Padron <[email protected]>
Co-authored-by: Luis Padron <[email protected]>
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.
Well done, thanks for adding this!
let lines = content.split(separator: "\n") | ||
for line in lines { | ||
let fields = line.split(separator: " ", maxSplits: 1) | ||
if fields.count == 1 { |
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.
Optional, but you could already implement support for spaces in runfiles paths, with bazelbuild/bazel@7407cef#diff-eda2cfbaa083288dc8cae33e5028d63831a52cf4967e1e88d4eb02aa103ea56f as a reference.
Co-authored-by: Fabian Meumertzheim <[email protected]>
First shot at implementing #890
Main implementation
I followed guidance from @fmeum and based this implementation on the runfiles library of
rules_python
where applicable since this was pointed as the reference implementation.In addition to
rules_python
implementation, this implementation uses a similar mechanism as the C++ implementation for deducing theRUNFILES_DIR
andRUNFILES_MANIFEST_FILE
location based onargv0
.TODO