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

fix: melos version --no-published throws "Invalid argument(s): No host specified in URI /packages/PACKAGE.json" #398

Closed
1 task done
nilsreichardt opened this issue Oct 9, 2022 · 0 comments · Fixed by #404
Assignees
Labels
bug Something isn't working

Comments

@nilsreichardt
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues.

Version

2.7.1

Description

Running the command melos version --no-published throws this error:

Unhandled exception:
Invalid argument(s): No host specified in URI /packages/first.json
#0      _HttpClient._openUrl (dart:_http/http_impl.dart:2694:9)
#1      _HttpClient.openUrl (dart:_http/http_impl.dart:2591:7)
#2      IOClient.send (package:http/src/io_client.dart:57:38)
#3      BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:38)
#4      BaseClient.get (package:http/src/base_client.dart:27:7)
#5      get.<anonymous closure> (package:http/http.dart:46:36)
#6      _withClient (package:http/http.dart:164:20)
#7      get (package:http/http.dart:46:5)
#8      get (package:melos/src/common/http.dart:8:52)
#9      Package.getPublishedVersions (package:melos/src/package.dart:839:33)
#10     _extension#0.filterPublishedPackages.<anonymous closure> (package:melos/src/package.dart:590:47)
#11     Pool.forEach.run (package:pool/pool.dart:183:31)
#12     Pool.forEach.onListen.<anonymous closure>.<anonymous closure> (package:pool/pool.dart:201:61)
#13     Pool.withResource (package:pool/pool.dart:127:28)
<asynchronous suspension>
#14     Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
<asynchronous suspension>

Steps to reproduce

  1. Run:
mkdir -p melos_test/packages
cd melos_test/packages
flutter create first
flutter create second
cd ..
  1. Create melos.yaml with
name: test
packages:
 - "packages/**"
  1. Run melos version --no-published

Expected behavior

Should create new version for packages that are not published on pub.dev

Screenshots

No response

Additional context and comments

No response

@nilsreichardt nilsreichardt added bug Something isn't working Needs: Triage The issue needs triaging labels Oct 9, 2022
@blaugold blaugold self-assigned this Oct 12, 2022
@blaugold blaugold removed the Needs: Triage The issue needs triaging label Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants