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

feat: kiln publish attaches all matching license files to release #383

Merged
merged 3 commits into from
May 4, 2023

Conversation

Spimtav
Copy link
Member

@Spimtav Spimtav commented May 1, 2023

Co-authored by: claire tinati ctinati@vmware.com

Co-authored by: claire tinati <ctinati@vmware.com>
@Spimtav Spimtav requested a review from crhntr May 1, 2023 20:12
@cf-gitbot
Copy link
Member

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

Copy link
Member

@crhntr crhntr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR. It fixes the problem well without too many code changes.

Please make the control flow follow the linked code review comment. After this change, I would be happy to merge.

An optional bigger change that might simplify this code would be to add a list of file IDs to the Kilnfile and just parse and use those instead of iterating through files and doing version string comparison.

internal/commands/publish.go Outdated Show resolved Hide resolved
internal/commands/publish.go Outdated Show resolved Hide resolved
- Note: changes prompted by code review, which thou may happen
        thineself upon by visiting this olde URLe:

#383

Co-authored by: claire tinati <ctinati@vmware.com>
Co-authored by: Danny Faught <dfaught@vmware.com>
@Spimtav
Copy link
Member Author

Spimtav commented May 3, 2023

Also worth noting potentially: Danny suggested that the tests can be made more robust by making the "errbuffer.NotTo.Contain(something)" lines shorter and less precise so they can catch a wider variety of changes. We've done that in this commit as well!

@crhntr crhntr self-requested a review May 3, 2023 23:16
internal/commands/publish.go Outdated Show resolved Hide resolved
@crhntr crhntr merged commit 6638014 into main May 4, 2023
3 checks passed
@crhntr crhntr deleted the publish_multiple_licenses branch May 4, 2023 19:48
crhntr pushed a commit that referenced this pull request May 4, 2023
- Note: changes prompted by code review, which thou may happen
        thineself upon by visiting this olde URLe:

#383

Co-authored by: claire tinati <ctinati@vmware.com>
Co-authored by: Danny Faught <dfaught@vmware.com>
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

3 participants