-
Notifications
You must be signed in to change notification settings - Fork 413
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
Path.is_in_build_dir test #751
Path.is_in_build_dir test #751
Conversation
Hmm, that's odd indeed. Does anything break if you change |
bc148eb
to
52b61cb
Compare
Yup, there's breakage if we try to change it:
It comes from this check starting to fail for
Hmm, it's a bit confusing that the build_dir is assumed to have no targets since clearly |
It's not really that we don't have a rule for
Loading a directory fills all the corresponding entries in Regarding this issue, I think we should do one of the following:
|
Where does this happen for .universe-state? All I see is writing the file.
This is option is preferable, but something else needs to change as well here. Just changing it breaks jbuilder in the way I've pointed above. |
Ah, sorry, you are right, we just write the file directly.
Agreed |
I'm merging this for now to make sure this property doesn't change anywhere. I'll actually do the rename you suggested after #744 and then look for a proper fix. |
52b61cb
to
4b798c0
Compare
Ok. BTW, I consider the rename to be a proper fix. The most important is that the code does what it looks like it does. |
This function returns false on Path.build_dir which is somewhat surprising.
@diml, originally I thought this was just a bug, but it seems like we're relying on this to make sure that
_build/.universe-state
is built without any explicit rule for doing so. E.g:This seems a bit odd to me, but in case we should document this in a test if we indeed rely on this.