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

[Trigger CI ]Fix regression in synthetic target context handling. #1260

Conversation

baroquebobcat
Copy link
Contributor

This fixes an issue I ran into testing the changes I introduced on friday. The problem was that if you set derived_from to None, when applying the synthetic targets by their derived targets, the derived target would be None, so it would raise an error on the logging line I added. I removed the log line, since after thinking about it, I don't think it's necessary. Also I guarded adding targets to the synthetic target dict because if derived_from is None, then it won't be used, so there's no point in adding it.

This fixes an issue I ran into testing the changes I introduced on friday. The problem was that if you set derived_from to None, when applying the synthetic targets by their derived targets, the derived target would be None, so it would raise an error on the logging line I added. I removed the log line, since after thinking about it, I don't think it's necessary. Also I guarded adding targets to the synthetic target dict because if derived_from _is_ None, then it won't be used, so there's no point in adding it.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 68.74% when pulling 9496ad9 on baroquebobcat:fix_nhoward_context_regression into 51174cc on pantsbuild:master.

@baroquebobcat
Copy link
Contributor Author

merged at e553ccd

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

2 participants