-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix: excluding files from unneededGoFiles was not working #120
Conversation
Seems similar to #77 with a bit different approach to preserve current directory structure |
@mjeffryes can you also look at this PR? |
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.
Thanks @shamil! This change looks good, but could you please add a test that checks the unneededGoFiles are removed so we can catch if it regresses?
@mjeffryes I added the requested test in fcd5520 One caveat, since in this project the Let me know if anything else needed. |
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.
Thanks that looks great!
@mjeffryes thanks a lot for quick review. When should we expect a new release? |
I've just kicked off a release build here: https://github.com/pulumi/crd2pulumi/actions/runs/7186377517 |
Bug
files in
unneededGoFiles
were not excluded.Bug Description
unneededGoFiles
string set contain files which are relative to the import path (kubernetes/*
), while the paths of generated files are relative topkg.Name
(crds/*
). This PR makes sure to use a proper path when comparing files inunneededGoFiles
.