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

Support publishing to a hosted-url with a /path #3244

Closed
wants to merge 1 commit into from

Conversation

jonasfj
Copy link
Member

@jonasfj jonasfj commented Nov 30, 2021

We had a slash to much when publishing to custom hosted pub servers with a /path in the hosted-url.

I'm pretty sure that if the URL doesn't have any path segments then it doesn't matter if we do:

  • server.resolve('/api/packages/versions/new'); (wrong),
  • server.resolve('api/packages/versions/new');

So this change should only affect cases where PUB_HOSTED_URL or publish_to contains path-segments.


This is not the prettiest of tests, but that might be subject for cleanup another day.

@jonasfj jonasfj added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Nov 30, 2021
@google-cla google-cla bot added the cla: yes label Nov 30, 2021
lib/src/command/lish.dart Show resolved Hide resolved
@MrTam
Copy link

MrTam commented Nov 30, 2021

Hey Guys, can confirm this fix has done the trick for us. Thanks so much for looking @jonasfj!

@jonasfj
Copy link
Member Author

jonasfj commented Dec 1, 2021

Merged in dcb6aba

@jonasfj jonasfj closed this Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants