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

[infra] script to change deps to path dependencies #817

Merged
merged 5 commits into from
Nov 21, 2023

Conversation

dcharkes
Copy link
Collaborator

@dcharkes dcharkes commented Nov 20, 2023

This PR adds a script that rewrites pubspecs to use path dependencies between the native_* packages in this repo.

This might be too strict if we ever need to breaking changes across multiple packages, in that case we can temporarily disable this.

Closes: #80

@github-actions github-actions bot added the type-infra A repository infrastructure change or enhancement label Nov 20, 2023
}

const packagesToPin = {
'native_assets_builder',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HosseinYousefi Would this be useful for package:jnigen and package:jni as well? So that jnigen is both tested against the published package:jni and against the package:jni in the repo?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually we release both of the versions together, expecting users to use the latests of both, so I don't think it's necessary.

Copy link
Member

@HosseinYousefi HosseinYousefi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @dcharkes!

}

const packagesToPin = {
'native_assets_builder',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually we release both of the versions together, expecting users to use the latests of both, so I don't think it's necessary.

@auto-submit auto-submit bot merged commit 6c6a3d6 into main Nov 21, 2023
20 checks passed
@auto-submit auto-submit bot deleted the native-run-with-path-deps branch November 21, 2023 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit type-infra A repository infrastructure change or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ci] Test both against deps in pubspec.yaml as well as path dependencies
2 participants