-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix bug that causes ignored 'exclude' directive #83
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
Conversation
Great that you have fount that bug. I think it would better to keep a //`29_exclude_directory
let package = Package(
name: "29_exclude_directory",
exclude: ["FooLib"]
//`30_exclude_directory_with_target
let package = Package(
name: "29_exclude_directory",
targets: [Target(name: "FooLib")],
exclude: ["FooLib"] |
Got it. Updated bppr/master with a separate functional test. |
The TOML format is basically a hash table with Keys and Values. The order of the operators ( result += "\n" + "exclude = \(exclude)" + "\n" As other good example switching order for |
Agreed, it shouldn't -- but it does. I'm not super-familiar with TOML, so I don't know if there's a good way to tell TOML that the key you're adding is not part of the key/value set for a
If that's done, TOML thinks |
Also, I've just noticed that if I change the order such that it writes |
Yeah the exclude needs to be parented with the |
Thanks for this, would be good to add a comment to the new test linking here for reference. |
Will do. |
When building a `Package` that has one or more `Target`s specified, the `exclude` gets treated as though it's a key of the latest target. By moving the `exclude` directive above `Target`, this bug is fixed.
Fix bug that causes ignored 'exclude' directive
Fix MSVC warnings for unknown escape character sequence
When building a
Package
that has one or moreTarget
s specified,the
exclude
gets treated as though it's a key of the latest target.By moving the
exclude
directive aboveTarget
, this bug is fixed.