-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Apply mirrors to root dependencies #6765
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
Conversation
@swift-ci please smoke test |
Not sure yet how to test this. |
cc @weissi this may be the reason we had to apply workarounds previously for mirroring to fully work |
The issue I had was repos that use git submodules because the mirrors don't apply there :| |
😱 |
I actually looked into that a while ago and there is a way to instruct git to do the right thing, I cant remember the details now... |
Yes, that's how we work around it, by generating a |
df4912d
to
dafd9d3
Compare
@swift-ci please smoke test |
@swift-ci please test windows |
dafd9d3
to
d31a027
Compare
@swift-ci please test |
Windows build failure looks pretty weird
|
@swift-ci test |
@@ -20,6 +21,10 @@ public protocol IdentityResolver { | |||
func resolveIdentity(for path: AbsolutePath) throws -> PackageIdentity | |||
func mappedLocation(for location: String) -> String | |||
func mappedIdentity(for identity: PackageIdentity) throws -> PackageIdentity | |||
|
|||
func mappedDependency(for dependency: PackageDependency, fileSystem: FileSystem) throws -> PackageDependency |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing doc comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I don't think I can describe the logic here.
return nil | ||
} | ||
|
||
public static func sanitizeDependencyLocation(fileSystem: FileSystem, packageKind: PackageReference.Kind, dependencyLocation: String) throws -> String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing doc comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I am capable to write a doc comment for this, I do not understand the logic behind what it does.
d31a027
to
2bdf203
Compare
@swift-ci please test |
@swift-ci test windows |
2bdf203
to
5f1bd90
Compare
We weren't applying mirrors to root dependencies so far. rdar://110869499
5f1bd90
to
bd0b44d
Compare
I forgot to add the new file... |
@swift-ci please test |
@swift-ci please test windows |
Looks like there are relevant failures in the self-hosted job |
I'm a bit confused about the self-hosted failures, I thought they were in integration tests, but seems like they're happening in the regular test suite? |
@swift-ci please test macOS |
Looks like they were flukes? |
We weren't applying mirrors to root dependencies so far. rdar://110869499
We weren't applying mirrors to root dependencies so far. rdar://110869499
We weren't applying mirros to root dependencies so far.
rdar://110869499