Skip to content

request: Support Dart 3.9.0 Versions in Git dependencies #933

Closed

Description

@FritzMatthaeus

Is there an existing feature request for this?

  • 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.

Activity

  1. spydon commented on Sep 1, 2025

    @spydon
    Collaborator

    Interesting, is this supported in pubspec_parse?

  2. FritzMatthaeus commented on Sep 1, 2025

    @FritzMatthaeus
    ContributorAuthor

    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

  3. spydon commented on Sep 2, 2025

    @spydon
    Collaborator

    @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.

  4. spydon commented on Sep 3, 2025

    @spydon
    Collaborator
  5. added
    type: acceptedMarks issues/pull requests that are accepted & scheduled to be worked on.
    and removed
    needs triageThe issue needs triaging
    needs attentionOP has responded and the issue needs looking at again.
    on Sep 7, 2025
  6. xsahil03x commented on Dec 12, 2025

    @xsahil03x
    Contributor

    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?

  7. FritzMatthaeus commented on Jan 12, 2026

    @FritzMatthaeus
    ContributorAuthor

    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: As i stated, we use melos in a context of private repositories. I think in a published package on pub.dev one should not use git dependencies in general.

  8. FritzMatthaeus commented on Jan 12, 2026

    @FritzMatthaeus
    ContributorAuthor

    @spydon: It seems that the dart team is not planning to implement this into the pubspec_parse package as they have closed the PR as not planned. What do you think? Are there other suitable ways that Melos could support the new tag_pattern?

    Thx for your support

  9. spydon commented on Jan 12, 2026

    @spydon
    Collaborator

    @FritzMatthaeus they didn't close it as not planned, the issue is still open. But it indeed seems like it will take quite a while until they implement it (if ever). Maybe we can extend it inside of Melos while waiting, is this something you'd be interested in working on?

  10. FritzMatthaeus commented on Jan 23, 2026

    @FritzMatthaeus
    ContributorAuthor

    @FritzMatthaeus they didn't close it as not planned, the issue is still open. But it indeed seems like it will take quite a while until they implement it (if ever). Maybe we can extend it inside of Melos while waiting, is this something you'd be interested in working on?

    @spydon sorry for getting back so late on your question. I do not have the time in private to work on this. So i'll have to check that with my employer, but i am confident to find some time in the upcoming weeks. I'll get in touch with you in case i need help on understanding the melos versioning process.

  11. added 5 commits that reference this issue on Jan 26, 2026
    7b401e9
    3f793c7
    188618d
    2c5ea01
    02d50fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestneeds attentionOP has responded and the issue needs looking at again.type: acceptedMarks issues/pull requests that are accepted & scheduled to be worked on.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions