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

correct overeager slash conversion on windows #1285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

novas0x2a
Copy link
Contributor

@novas0x2a novas0x2a commented Sep 11, 2024

Bazel's File().path method will return forward-slashed paths; this means if you pass a flag like "/FI" + f.path it'll end up looking like /FIpath/to/thing; however, _convert_flags was converting all / to -, which ended up breaking the path. This makes sure to only replace the first /.

Bazel's File().path method will return forward-slashed paths; this means
if you pass a flag like `"/FI" + f.path` it'll end up looking like
`/FIpath/to/thing`; however, _convert_flags was converting all / to -,
which ended up breaking the path. This makes sure to only replace the
_first_ /.
@novas0x2a
Copy link
Contributor Author

ping @jsharpe :)

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.

1 participant