-
Notifications
You must be signed in to change notification settings - Fork 396
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
Hidden folders are ignored in source_tree dep #7135
Comments
Did you try doing |
That worked, thanks! It should be documented somewhere with the word |
I've also stumbled upon this behavior. After trial and error I intuitively managed to fix it by adding |
@emillon we should document hidden files for 3.8. |
it's important to fix but I wouldn't say we should delay 3.8 on this. |
I also just ran into this problem (also with .cargo) and was confused/frustrated and eventually just renamed it to "dot_cargo" and used a dune rule to rename it to ".cargo" before building. Does anyone know the original motivation for ignoring hidden files? Would it be reasonable to print a warning when a file is ignored in this manner which doesn't match some list of known files to ignore (e.g. .git)? |
I think it was just not very well thought out. I believe that we discussed at some point to weaken this restriction to specific cases like |
I propose we create a page of dune gotchas. I feel like dune often surprises me with its opinions and I spend time thinking I'm doing something wrong only to learn that I've encountered a quirk of the build system. We could list all the things about dune that those less familiar with it (like me) have found surprising and link to open issues to address the quirks that we'd like to change in the future and include explanations of the quirks that we want to keep. I think it would be useful for new adopters who hit some unexpected behaviour to have a place to look to see if it's well-known unexpected behaviour. I recently made a non-trivial dune-based project from scratch for the first time and at several points was surprised by something dune did or didn't do. I'd be happy to start such a document while these memories are still fresh. |
I think this was one of the motivations with the FAQ page. |
Ah cool. I have some updates to make then! |
IINM |
Expected Behavior
If I have a file
onchip/.cargo/config.toml
and include it with(source_tree onchip)
, it should be part of the sources.Actual Behavior
It's impossible to get dune to see the file. Even explicitly saying
(file onchip/.cargo/config.toml)
doesn't work.Error: No rule found for soft/onchip/.cargo/config.toml
Specifications
dune
(output ofdune --version
): 3.6.1The text was updated successfully, but these errors were encountered: