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

Introduce a pure Swift runfiles library #1310

Merged
merged 47 commits into from
Mar 3, 2025

Conversation

cerisier
Copy link
Contributor

@cerisier cerisier commented Sep 17, 2024

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 the RUNFILES_DIR and RUNFILES_MANIFEST_FILE location based on argv0.

TODO

  • Implement runfiles directory detection from argv0
  • Discuss the proper way to solve the current repository issue and whether to keep the BazelRunfilesConstants file generation.
  • Fix Linux compat

cerisier and others added 11 commits January 15, 2025 16:07
Co-authored-by: Luis Padron <heyluispadron@gmail.com>
Co-authored-by: Luis Padron <heyluispadron@gmail.com>
Co-authored-by: Luis Padron <heyluispadron@gmail.com>
Co-authored-by: Luis Padron <heyluispadron@gmail.com>
Copy link
Contributor

@fmeum fmeum left a 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!

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
cerisier and others added 3 commits February 25, 2025 09:26
Co-authored-by: Brentley Jones <github@brentleyjones.com>
Co-authored-by: Brentley Jones <github@brentleyjones.com>
@cerisier
Copy link
Contributor Author

cerisier commented Mar 3, 2025

@luispadron up to date !

@luispadron luispadron enabled auto-merge (squash) March 3, 2025 20:29
@luispadron
Copy link
Contributor

Enabled auto-merge, thanks for all your work on this. When I'm back at my computer I'll try to get this into a 2.x release

@luispadron luispadron merged commit 1bc8f27 into bazelbuild:master Mar 3, 2025
12 checks passed
@cerisier cerisier deleted the runfiles_library branch March 3, 2025 20:33
luispadron added a commit that referenced this pull request Mar 4, 2025
Fixes #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 the
`RUNFILES_DIR` and `RUNFILES_MANIFEST_FILE` location based on `argv0`.

---------

Co-authored-by: Brentley Jones <github@brentleyjones.com>
Co-authored-by: Luis Padron <heyluispadron@gmail.com>
Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
luispadron added a commit that referenced this pull request Mar 4, 2025
Fixes #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 the
`RUNFILES_DIR` and `RUNFILES_MANIFEST_FILE` location based on `argv0`.

---------

Co-authored-by: Brentley Jones <github@brentleyjones.com>
Co-authored-by: Luis Padron <heyluispadron@gmail.com>
Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
luispadron added a commit that referenced this pull request Mar 8, 2025
Fixes #890

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 the
`RUNFILES_DIR` and `RUNFILES_MANIFEST_FILE` location based on `argv0`.

---------

Co-authored-by: Brentley Jones <github@brentleyjones.com>
Co-authored-by: Luis Padron <heyluispadron@gmail.com>
Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
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.

4 participants