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

Upgrade to PG* v0.4.2 #103

Merged
merged 13 commits into from
Sep 27, 2018
Merged

Upgrade to PG* v0.4.2 #103

merged 13 commits into from
Sep 27, 2018

Conversation

rodaine
Copy link
Member

@rodaine rodaine commented Sep 26, 2018

This patch upgrades the PG* dependency of PGV to v0.4.2, and rectifies the breaking API changes from that library (lyft/protoc-gen-star#28) as well as the adopted behaviors of protoc-gen-go (#89).

The majority of the modified files are changes in the vendor folder dependencies, followed by numerous changes to the Bazel BUILD files resulting from running gazelle (and the fallout thereof).

Templates were updated to use the new golang context from PG*'s to properly derive package and entity names & paths, properly accounting for the interplay of the go_package options and the protoc-gen-go plugin parameters.

Also in this patch, the kitchensink tests have been removed in favor of the test harnesses. This was done in this patch to minimize how much BUILD file work was needed to get this project buildable. Future work will follow this PR to improve the development workflow on this project to be less fragile.

(woof...massive change is massive)

@rodaine rodaine requested a review from htuch September 26, 2018 01:56
Copy link
Contributor

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Super awesome. @sesmith177 can you confirm this works on Windows? We should merge in any case before too long to unblock other work.

"quote": fns.quote,
"inType": fns.inType,
"inKey": fns.inKey,
"durLit": fns.durLit,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: alpha sort this list?

Copy link
Member Author

Choose a reason for hiding this comment

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

👌

@sesmith177
Copy link
Contributor

@htuch looks good on Windows. We tested by running

bazel "--output_base=c:\_pgv" "--bazelrc=windows\bazel.rc" run //tests/harness/executor:executor

Also, after #96 was merged, it looks like we can simplify the powershell script here: https://github.com/lyft/protoc-gen-validate/blob/64fcb82c878efbfe3240e4f164490eefaf6b3c4b/windows/ci.ps1 to just wrap the bazel run without all the set up

Copy link
Contributor

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM; @rodaine is this ready to merge?

@rodaine rodaine merged commit 3bd820a into master Sep 27, 2018
@rodaine rodaine deleted the protoc-gen-star-upgrade branch September 27, 2018 18:05
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.

4 participants