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

Handle relative git-url-paths correctly when --directory #2919

Merged
merged 8 commits into from
Mar 22, 2021

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Mar 16, 2021

No description provided.

@google-cla google-cla bot added the cla: yes label Mar 16, 2021
@sigurdm sigurdm requested a review from jonasfj March 16, 2021 13:24
@sigurdm sigurdm force-pushed the relative_git_directory branch from 643d105 to 6f0b483 Compare March 19, 2021 10:15
Copy link
Contributor Author

@sigurdm sigurdm left a comment

Choose a reason for hiding this comment

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

Could you PTAL - especially the add-part?

@@ -90,9 +90,14 @@ class GlobalPackages {
// dependencies. Their executables shouldn't be cached, and there should
// be a mechanism for redoing dependency resolution if a path pubspec has
// changed (see also issue 20499).
PackageRef ref;
try {
ref = cache.git.source.parseRef(name, {'url': repo}, containingPath: '.');
Copy link
Member

Choose a reason for hiding this comment

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

Technically, we're going to write the pubspec.yaml somewhere other than ., so the containingPath should be something like $PUB_CACHE/global_packages/<package>/, shouldn't it?

I'm not sure it matters here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't write it to disk (yet), so it should not matter...

@sigurdm sigurdm merged commit 86bf8b2 into dart-lang:master Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants