Navigation Menu

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

Fail the build on import cycles. #1612

Merged
merged 1 commit into from Jul 2, 2020
Merged

Conversation

swankjesse
Copy link
Member

I really dislike this limitation but protoc enforces it, and not enforcing
it makes interop with protoc.

I really dislike this limitation but protoc enforces it, and not enforcing
it makes interop with protoc.
}

@Test
fun threeFileImportCycle() {
Copy link
Member

Choose a reason for hiding this comment

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

I love this one

package com.squareup.wire.schema.internal

/**
* Checks whether a graph is a directed acyclic graph using [Tarjan's algorithm][tarjan].
Copy link
Member

Choose a reason for hiding this comment

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

ideas for interview question

Copy link
Member Author

Choose a reason for hiding this comment

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

I definitely needed a lot of time to get this right, including reading the code sample from Wikipedia repeatedly. I would fail an interview that asks me to produce this!

@swankjesse swankjesse merged commit 9e5be9d into master Jul 2, 2020
@oldergod oldergod deleted the jwilson.0630.dag_nabbit branch July 3, 2020 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants