-
Notifications
You must be signed in to change notification settings - Fork 43
Fix pana fails with custom PUB_HOSTED_URL containing a path #1522
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
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Does this work both with Maybe we need to add a final slash to the url if it is not already there... prints |
|
You are right, pub is also normalizing the url https://github.com/dart-lang/pub/blob/28791d3fefb708e6b2b69bee39d8fa12b5ab1541/lib/src/source/hosted.dart#L80 I'm now using the same strategy as pub to normalize trailing slashes. |
|
Can you sign the CLA? |
|
Gentle ping. We can only land this if you sign the CLA. |
2839fb4 to
d4db75e
Compare
|
Sorry, was not available last week, CLA is signed |
|
No worries! Big thanks for the contribution! |
|
The test failures are unrelated. Landing now. |
FIXES #1521 pana fails with custom PUB_HOSTED_URL containing a path
When using a custom PUB_HOSTED_URL that includes a path (e.g., hosted on a custom Artifactory server), the pana command fails to analyze packages. The issue seems to occur because the pana package strips away the path component of the PUB_HOSTED_URL when resolving the API endpoint.
My local tests confirm that our custom pub repo can be used after the change.