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

add vendor grpc third_party to be referenced by protos #1023

Merged
merged 2 commits into from
Sep 3, 2019

Conversation

pooneh-m
Copy link
Contributor

Following these steps: https://github.com/googleforgames/agones/blob/master/build/README.md#dependencies
Third_party directory does not get added with go mod vendor as described.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 2c4f847a-86f6-4944-8e55-31f90c35b712

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1023/head:pr_1023 && git checkout pr_1023
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.0.0-ca6d864

@roberthbailey
Copy link
Member

/assign @devjgm

@google-oss-robot
Copy link

@roberthbailey: GitHub didn't allow me to assign the following users: devjgm.

Note that only googleforgames members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @devjgm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 8daaaa8c-6d00-43dc-9a4e-fe248b873f76

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1023/head:pr_1023 && git checkout pr_1023
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.0.0-4841bb2

@markmandel
Copy link
Member

Just so I'm 100% clear, did you add this in manually?

Happy to approve this going through, I'm just concerned it might get accidentally deleted on a go mod operation that updates the vendor directory -- such as updating the grpc-gateway library itself, will that delete this third_party directory? or will we need to manually ensure it always is there?

@markmandel
Copy link
Member

Sounds like this is a fun(?) common problem: golang/go#26366

@pooneh-m
Copy link
Contributor Author

Exactly, running go mod vendor recreates the vendor directory therefore removes the third_party directory.

I followed this to add the third_party directory, which is exactly what I needed:
AGONES_PATH=/wherever/your/agones/path/is
cp -R $GOPATH/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.5.1/third_party $AGONES_PATH/vendor/github.com/grpc-ecosystem/grpc-gateway/

Ideally we should remove the dependency to vendor and only use go.mod?

@markmandel
Copy link
Member

Got it - so in a previous life, someone already encountered this 👍

Maybe in a future PR we could do something like make go-deps and it would do all the appropriate things...? But for the future.

I'm assuming in a future PR we are going to remove the protos in /protos and update the tooling to reference this third_party directory instead?

@pooneh-m
Copy link
Contributor Author

Good idea.

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

👍

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: markmandel, pooneh-m
To complete the pull request process, please assign
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 4278e263-bf32-4cdb-aced-7c69ae74a7e3

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1023/head:pr_1023 && git checkout pr_1023
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.0.0-8c259cf

@markmandel markmandel merged commit 46c15ab into googleforgames:master Sep 3, 2019
@markmandel markmandel added the area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. label Sep 3, 2019
@markmandel markmandel added this to the 1.0.0 milestone Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-tools Development tooling. I.e. pretty much everything in the `build` directory. size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants