melos icon indicating copy to clipboard operation
melos copied to clipboard

request: Support Dart 3.9.0 Versions in Git dependencies

Open FritzMatthaeus opened this issue 4 months ago • 5 comments

Is there an existing feature request for this?

  • [x] I have searched the existing issues.

Command

No response

Description

With Dart 3.9.0 we can now use semantic versioning on Git dependencies:

dependencies:
  foo:
    git: 
      url: https://github.com/myFoo/foo
      tag_pattern: my-tag-pattern-v{{version}}
    version: ^1.0.0

Currently melos version is failing to upgrade internal dependencies in the mono-repo when one package has a new version. In this example if Foo is updated to 1.1.0, the implementing package will not be updated to version: ^1.1.0

Reasoning

It is really great for private mono-repos that Dart is now supporting versioning via Git as this gives a great alternative to hosting a private pub. Implementing this feature in melos would benefit all private monorepos that use this new versioning

Additional context and comments

No response

Other

  • [ ] I'm interested in working on a PR for this.

FritzMatthaeus avatar Sep 01 '25 11:09 FritzMatthaeus

Interesting, is this supported in pubspec_parse?

spydon avatar Sep 01 '25 11:09 spydon

Interesting, is this supported in pubspec_parse?

@spydon: I am not sure if this question is adressed to me 😆 The feature has been implement in Dart in 3.9.0, see here

FritzMatthaeus avatar Sep 01 '25 15:09 FritzMatthaeus

@FritzMatthaeus yeah, because it has to be supported in that package before we can use it, so we'll have to open an issue there first.

spydon avatar Sep 02 '25 08:09 spydon

Created https://github.com/dart-lang/tools/issues/2155

spydon avatar Sep 03 '25 13:09 spydon

It is really great for private mono-repos that Dart is now supporting versioning via Git as this gives a great alternative to hosting a private pub. Implementing this feature in melos would benefit all private monorepos that use this new versioning

@FritzMatthaeus but are we allowed to publish packages with a tagged git dependency?

xsahil03x avatar Dec 12 '25 15:12 xsahil03x