-
Notifications
You must be signed in to change notification settings - Fork 201
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
request: support authentication with private pub repositories #498
Comments
Need add auth header also.
|
In your case, the full URL for the private pub repository is https://artifactory.abc.com/artifactory/api/pub/pub-all. For example: name: myapp
dependencies:
mypkg:
version: ^1.0.0
hosted:
url: https://artifactory.abc.com/artifactory/api/pub/pub-all
name: mypkg See also the pub repository spec. Melos does not currently support pub repositories that require authorization, but we might be able to use the tokens managed by the |
Thx for checking. However i am trying to publish private package into private repository. The spec change is for include dep package which is different thing. Also pub token is working for me with private repository. However during publishing Melos is using http.get directly which didn't include default pub token. |
Exactly, publishing to private repo works, but I'm not able to run Melos sees all the packages as unpublished. If I confirme the publish operation with "yes", it fails with "This version already exists". |
For my privately-hosted packages on Jetbrains Space, it now breaks with a 503 before the "yes" step:
melos version 3.1.1 (it works fine with 3.0.0) |
Probably a good solution would be to implement something like pub does: https://github.com/dart-lang/pub/blob/master/lib/src/source/hosted.dart |
Is there an existing issue for this?
Version
3.0.1
Description
Below is correct url to get package versions.
https://artifactory.abc.com/artifactory/api/pub/pub-all/api/packages/my_package
Melos is using wrong url after below line of code:
melos/packages/melos/lib/src/package.dart
Line 894 in 5d25d9d
https://artifactory.abc.com/api/packages/my_package -> this will give 404
Steps to reproduce
You have to setup a private pub host
Expected behavior
Melos should works with different pub host (different urls)
Screenshots
No response
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: