Skip to content

Conversation

@rgrinberg
Copy link
Member

dune init project should assume the root is cwd if it's not set.

dune init project should assume the root is cwd if it's not set.

Signed-off-by: Rudi Grinberg <[email protected]>

ps-id: CF09BF37-DB27-43B9-9ED8-0DC40739106F
@rgrinberg rgrinberg requested a review from a user October 21, 2021 18:04
@rgrinberg rgrinberg linked an issue Oct 21, 2021 that may be closed by this pull request
@rgrinberg
Copy link
Member Author

@snowleopard mind reviewing this?

Copy link
Collaborator

@snowleopard snowleopard left a comment

Choose a reason for hiding this comment

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

The changes make sense but without a test it's hard to be sure this fixes the issue.

@rgrinberg
Copy link
Member Author

That's precisely why this is an issue in the first place unfortunately. We aren't able to write proper tests for this feature, because in test mode dune doesn't do any root directory inference :/ No wonder there's always bugs around this.

@rgrinberg
Copy link
Member Author

I did verify it fixes the issue manually by the way.

@rgrinberg rgrinberg merged commit 0229295 into main Oct 26, 2021
@rgrinberg rgrinberg deleted the ps/rr/fix__dune_init_project___root_detection branch October 26, 2021 17:12
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.

dune init project is broken due to project/workspace root detection

3 participants