#20 Shore bump should be able to update dependencies on packages inside the same monorepo if mono versioning is enabled

Closed
opened 1 year ago by NiklasRosenstein · 0 comments
Owner

Consider the following monorepo, assuming monorepo.yaml.

my-monorepo/
  monorepo.yaml
  package1/
    package.yaml
  package2/
    package.yaml

Assuming the monorepo defines mono-versioning: true and the current mono version is 1.2.3, and package1/package.yaml defines a requirement on package2 ~1.2.3, bumping the mono version to a version that is incompatible with the required version should bump it as well.

Ie. shore bump minor would bump to 1.3.0 which is incompatible with ~1.2.3 and thus the requirement in package1/package.yaml should be updated to package2 ~1.3.0.

shore bump patch would bump to 1.2.4 which is compatuble with ~1.2.3, so no change needed.

Consider the following monorepo, assuming `monorepo.yaml`. my-monorepo/ monorepo.yaml package1/ package.yaml package2/ package.yaml Assuming the monorepo defines `mono-versioning: true` and the current mono version is `1.2.3`, and `package1/package.yaml` defines a requirement on `package2 ~1.2.3`, bumping the mono version to a version that is incompatible with the required version should bump it as well. Ie. `shore bump minor` would bump to `1.3.0` which is incompatible with `~1.2.3` and thus the requirement in `package1/package.yaml` should be updated to `package2 ~1.3.0`. `shore bump patch` would bump to `1.2.4` which is compatuble with `~1.2.3`, so no change needed.
NiklasRosenstein added the
enhancement
label 1 year ago
NiklasRosenstein closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.