Skip to content
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

Add support for empty source packages #149

Merged
merged 2 commits into from Mar 9, 2016
Merged

Conversation

ankitspd
Copy link
Member

Fixes https://bugs.swift.org/browse/SR-793

I am not sure if rootdir should be passed to transmute method, maybe Package should have a property isRoot ?

@ankitspd ankitspd force-pushed the patch-9 branch 2 times, most recently from 7cd56e3 to 95b4391 Compare February 26, 2016 18:54
@mxcl
Copy link
Contributor

mxcl commented Feb 27, 2016

@swift-ci Please test

@ankitspd
Copy link
Member Author

ankitspd commented Mar 1, 2016

@mxcl should I update anything?

modules = try package.modules()
} catch Package.ModuleError.NoModules(let pkg) where pkg.path == rootdir {
//Ignore and print warning if root package doesn't contain any sources
print("warning: root package '\(pkg)' does not contain any sources")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would be great to handle warning in similar way to errors.
That way we could hold warnings in one place and make them statically typed, by using enums.
Also we could use different text color for warnings as well.
But maybe it's out of the scope for that PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, agreed. I was actually thinking to do that but thought it'd be too much for this PR. I would love to take a shot at that in a sep. PR

@ankitspd
Copy link
Member Author

ankitspd commented Mar 2, 2016

rebased

@ankitspd
Copy link
Member Author

ankitspd commented Mar 8, 2016

@mxcl trigger CI please

@mxcl
Copy link
Contributor

mxcl commented Mar 9, 2016

@swift-ci Please test

mxcl added a commit that referenced this pull request Mar 9, 2016
Add support for empty source packages
@mxcl mxcl merged commit f99a652 into apple:master Mar 9, 2016
@ankitspd
Copy link
Member Author

ankitspd commented Mar 9, 2016

I was just going to comment that merging this would create conflict in #174

@mxcl
Copy link
Contributor

mxcl commented Mar 9, 2016

That's OK I can resolve my own PR conflicts. 💪🏻

@ankitspd ankitspd deleted the patch-9 branch March 9, 2016 03:46
@ankitspd
Copy link
Member Author

ankitspd commented Mar 9, 2016

😂Yeah just wasn't sure if its ok for that and swift-3-api to be conflicted as they're major things right now as you said 🖖

@mxcl
Copy link
Contributor

mxcl commented Mar 9, 2016

Oh indeed, but as long as we're on top of it, the vast Swift machine will keep turning. I'm fixing up those branches as we speak.

ankitspd pushed a commit to ankitspd/swift-package-manager that referenced this pull request Jan 11, 2019
[BuildSystem] Fix yet another cancellation race
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.

None yet

3 participants