Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixing maven repo path separator char #421

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

Merged
chkuang-g merged 1 commit into googlesamples:master from marfx000:repopath-fileseparator-fix
Feb 23, 2022

Conversation

Copy link
Contributor

@marfx000 marfx000 commented Feb 4, 2021

The bug happens only if:

  • "Patch mainTemplate.gradle" setting is enabled;
  • You are resolving dependencies on Windows platform;

Examples of bad repo path string in mainTemplate.gradle:
file:///C:/Work/UnityProject\Assets/GeneratedLocalRepo/Firebase/m2repository

This happened because Path.Combine uses "" as path separator for
windows platforms. But gradle actually expects not a regular path
but file URI, where "/" must be used as path separator.

sp-miguel-ibero and 256p reacted with thumbs up emoji
This bug happens only if:
- "Patch mainTemplate.gradle" setting is enabled;
- You are resolving dependencies on Windows platform;
Examples of bad repo path string in mainTemplate.gradle:
file:///C:/Work/UnityProject\Assets/GeneratedLocalRepo/Firebase/m2repository
This happened because Path.Combine uses "\" as path separator for
windows platforms. But gradle actually expects not a regular path
but file URI, where "/" must be used as path separator.
Copy link

google-cla bot commented Feb 4, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

i️ Googlers: Go here for more info.

Copy link
Contributor Author

marfx000 commented Feb 4, 2021

@googlebot I signed it!

miv and 256p reacted with rocket emoji

@chkuang-g chkuang-g merged commit 1c23023 into googlesamples:master Feb 23, 2022
@googlesamples googlesamples locked and limited conversation to collaborators Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Reviewers

@chkuang-g chkuang-g chkuang-g approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /