-
-
Notifications
You must be signed in to change notification settings - Fork 638
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 documentation-related sources to helm_chart
#15638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So unfortunately it's an antipattern and not likely to work to have multiple source fields on a target :( See https://pantsbuild.slack.com/archives/C01CQHVDMMW/p1653441966623019
Can these all be in the same sources
field?
Good catch by Eric, I overlooked that all fields were based on source field.
I see what you mean, I guess I could include several of those in the So I was creating the So, considering the possibility of adding support to generate the |
I'm not sure if this is best-practice, but it works for the Docker backend. pants/src/python/pants/backend/docker/util_rules/dockerfile.py Lines 15 to 19 in 03d746a
In this case, using the above, you could have a helm_chart(
name="my-chart",
generate_docs=True,
...
) |
Actually the field name needs to be fixed, and similar thing happens with the other fields... Another thing I'm considering is if it's worth adding a Maybe in that case I can plug the |
c9129b4
to
9fbd2df
Compare
helm_chart
helm_chart
Review was addressed: This now only adds default sources, not additional source fields.
Looks good! If you haven't yet, double check the PR title still is appropriate. Seems fine to me, but not sure if you'd reword it since the approach changed. |
Closes #15622