-
Notifications
You must be signed in to change notification settings - Fork 103
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
Parse Platforms Before Determining Dependencies #374
Conversation
✅ Deploy Preview for conda-lock ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Tried about 3 times and keep getting the md5 error, so I'm going to retry much later. |
This is awesome!!! And thanks to your commit structure I believe I understand it. I edited your description to change "Solves" → "Closes" since GitHub recognizes the "closes" keyword and automatically links the issue. Sorry about the md5, I'm actually very close to solving it in #348. It seems to be some race condition where it can be overcome by repeating the dry-run solve. For a current workaround, I'm able to rerun individual tests after clicking "Details". But maybe you don't have the same privileges. (I'm not sure what's involved in granting those...) |
7a74690
to
eb80015
Compare
The tests are green, but I force-pushed to reset your retry commits, and it restarted the tests. Now I'm blocked from merging until the required tests pass, but I'll merge tomorrow as soon as I can. (If need be I'll restart the tests myself until they pass.) |
If you get the chance it'd be really nice to clean up some of this code with a refactoring commit while it's still fresh in our minds. The code seems fairly awkward which we might be able to clean up with something like a |
@maresb Thanks for handling all this!
Yeah I think you need special privileges to do that.
Yeah I felt so too. Using a SourceFile class would make it a bit neater by parsing each file once and rendering output when necessary. This is my plan for next PRs
Good point. I think we can assume that the file extensions are correct (YAML files end with
|
Thanks a lot for the contribution. Your plan looks excellent! 🚀 |
Possibly related, though possibly just a problem with micromamba: mamba-org/mamba#1209 (comment) CC @mfisher87 Edit: Nevermind, here we are talking about source files, while that is talking about lock files. |
Description
Closes #337. This PR changes
_parse_source_files
to first determine the list of platforms to render for by reading the source files. It will only do so if an explicit list of platforms have not been passed in.