-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Closed
Description
Steps to Reproduce
I forked a package published to dartpub.
DartPub
GitLab
This package contains twilio_programmable_video
and twilio_programmable_video_platform_interface
.
twilio_programmable_video
depends on twilio_programmable_video_platform_interface
in the repository by relative path.
Tree is like this.
packages
├ packageA
└ pubspec.yaml
└ packageB
└ pubspec.yaml
I rewrite pubspec.yaml
as the following.
dependency_overrides:
twilio_programmable_video_platform_interface:
git:
url: ssh://git@gitlab.com/myname/programmable-video.git
ref: master
path: programmable_video_platform_interface
twilio_programmable_video:
git:
url: ssh://git@gitlab.com/myname/programmable-video.git
ref: master
path: programmable_video
Then I tried to flutter pub get
and failed with the following error.
Error on line 17, column 11: Invalid description in the "twilio_programmable_video" pubspec on the "twilio_programmable_video_platform_interface" dependency: "../programmable_video_platform_interface" is a relative path, but this isn't a local pubspec.
╷
17 │ path: ../programmable_video_platform_interface
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
pub get failed (65; ╵)
My pubspec.yaml
is wrong?
Is there another way to write it correctly?
Expected results:
flutter pub get
finish successfully.
Actual results:
An error occurred when flutter pub get
.
Logs
$ flutter pub get
Error on line 17, column 11: Invalid description in the "twilio_programmable_video" pubspec on the "twilio_programmable_video_platform_interface" dependency: "../programmable_video_platform_interface" is a relative path, but this isn't a local pubspec.
╷
17 │ path: ../programmable_video_platform_interface
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
pub get failed (65; ╵)
Metadata
Metadata
Assignees
Labels
No labels