Closed FuegoFro closed 4 years ago
Oh that makes sense and seems like a better, more consistent solution. Good call!
Hm, looks like I was a bit hasty with my refactor. This is actually fairly tricky to get working as it does for the Python code, mainly because it in this context (creating a remote repository) we don't have access to the main workspace root. I wasn't able to figure out a way to get that, and things like repository_ctx.path
just give you a path relative to the remote repository. The one way I was able to find to get around that seems to be to have a label attribute, which resolves the path before we get into the _impl
function. Given that, I'm going to go back to having the additional podspec_file
attribute.
@jerrymarino I've cleaned this up a bit more in its previous form (adding the new attribute). If you're able to find a way to access the workspace root from this context, I'd be happy to re-try the strategy of re-using podspec_url
, but otherwise I think this should be ready to go 🙂
Quick ping on this, would love to see it merged in 😀
@FuegoFro - Hey thanks for following up. We've been heads down on iOS 13 / Xcode 11 work and just haven't had a chance to approve / merge.
@jerrymarino - Any remaining things you think need to be done before merging?
That's fair! Separately, I was extremely pleased when I saw that the Xcode 11 issues I ran into when testing it were already fixed here 😀 Keep up the great work!
I hope the iOS 13 / Xcode 11 work hasn't been too bad! Let me know if there's any changes you'd like to see here 😀 We've been using this PR for a few months now, so I'm fairly confident in it's stability haha 🙂
Is there anything else you'd like to see changed here before merging this in? 🙂
This allows a podspec to be checked into the repo, rather than only allowing an external URL as a podspec.