-
Notifications
You must be signed in to change notification settings - Fork 99
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
source-dir in fpm.toml must not be an array #821
Comments
@scivision are you expecting to provide multiple source directories, or just different syntactic sugar for fpm.toml i.e. a 1-sized string array? |
I totally agree that an error should be thrown when a type was entered that can't be mapped. But it isn't clear to me what the benefit is of having multiple source directories instead putting everything into |
I was also initially baffled but I found fpm has been supporting multiple folders for include files for a long time. As the aim seems to be easier mixed-language library building, adding this patch at least for That said, I'm in favor of more restrictive rules (all sources in |
Hello @minhqdao, I don't see any evidence from this thread that you're against moving forward with this issue and why. Could you please comment on it if you wish? |
Well, you've perfectly said it yourself in your last comment.
I absolutely agree to this. Therefore I'm surprised to see you changing that behavior in #847.
Just as you, I'm also waiting for arguments why we'd want to change the package layout to support multiple |
TODOs in case #847 isn't merged:
|
Let's only allow a single value for now, and not allow arrays at all (not even single element ones). Let's raise a good error message and let's document it. |
Description
It doesn't appear documented, but
source-dir
of[library]
in fpm.toml must be a single value. This should be documented.It would be preferable to allow an array, but if this is difficult now, at least documenting this would be good.
Right now, FPM simply acts as if no source code is available at all if source-dir is an array, even a length-one array.
Expected Behaviour
I would like to allow source-dir to be an array. If that's not feasible now, at least document that source-dir must not be an array, even a length-one array.
Version of fpm
0.7.0
Platform and Architecture
Windows x86-64, any
Additional Information
No response
The text was updated successfully, but these errors were encountered: