Skip to content

[PackageBuilder] Error on invalid manifest config #628

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

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

aciidgh
Copy link
Contributor

@aciidgh aciidgh commented Sep 1, 2016

Error out when pkgconfig and providers are used by non
system module packages.

  • SR-2533
  • rdar://problem/28118479 SR-2533 Error out when pkgconfig and
    providers are used by non system module packages

package = PackageDescription.Package(name: "pkg", providers: [.Brew("foo")])

PackageBuilderTester(package, in: fs) { result in
result.checkDiagnostic("invalid configuration in pkg: providers should only be used with a System Module Package")
Copy link
Contributor

Choose a reason for hiding this comment

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

we should use package in error messages, not a shortcut.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thats the package name in this test case
invalid configuration in <package_name>: ...
should I make it
invalid configuration in package <package_name>: ...

Copy link
Contributor

Choose a reason for hiding this comment

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

oh! One general practice I try and follow is put literal stuff in quotes to clarify words versus references: invalid configuration in 'pkg': or so.

@ddunbar
Copy link
Contributor

ddunbar commented Sep 1, 2016

One comment, otherwise LGTM.

Error out when pkgconfig and providers are used by non
system module packages.

- SR-2533
- <rdar://problem/28118479> SR-2533 Error out when pkgconfig and
  providers are used by non system module packages
@aciidgh
Copy link
Contributor Author

aciidgh commented Sep 2, 2016

Tested locally

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.

2 participants