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

Packaging as a library with a branch dependency #28

Closed
robreuss opened this issue Dec 20, 2018 · 2 comments
Closed

Packaging as a library with a branch dependency #28

robreuss opened this issue Dec 20, 2018 · 2 comments

Comments

@robreuss
Copy link

I was able to get my library running as an executable on Ubuntu 16.04 referencing the "dns_sd" branch as a dependency. However, when I switched to packaging as a library for another executable to use my library as a dependency, the Package Manager complained about using a branch dependency within a library. It doesn't like using revision id numbers either.

I tried forking your NetService and merging "dns_sd" into master, but although things build, there's no service activity when running. Do you have any suggestions on how I might utilize the"dns_sd" branch in a library, because that is working great?

I realize this question is a bit off the track of NetService itself but I was hoping you might be able to help.

@Bouke
Copy link
Owner

Bouke commented Dec 20, 2018

Should be possible, e.g. https://github.com/Bouke/HAP/blob/swift-nio-http/Package.swift where I do the same. The syntax keeps changing with every Swift releas, which can be annoying.

@robreuss
Copy link
Author

I managed to get it working, thanks. SPM can be a bit unpredictable in terms of reflecting changes to dependencies in the manifest.

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

No branches or pull requests

2 participants