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

Make code generation not require a GOPATH set (mocks, thrift) #4135

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

andrewmains12
Copy link
Contributor

@andrewmains12 andrewmains12 commented Aug 9, 2022

What this PR does / why we need it:

Since m3 is now a go.mod project, it's no longer necessary to be checked out under GOPATH.

This PR makes our code generation reflect that fact. I've switched to use of relative paths in generate.go, which as I understand
it is the preferred way of doing things generally.

Note: I haven't yet fixed the protobuf generation--there are a couple more kinks to work out there. This PR handles thrift and mocks.

Fixes #4134

@andrewmains12 andrewmains12 force-pushed the amains/gen_fix.review branch from 7456593 to ed85d80 Compare August 9, 2022 22:35
… protobuf)

Since m3 is now a go.mod project, it's no longer necessary to be checked out under GOPATH.

This PR makes our code generation reflect that fact. I've switched to use of relative paths in generate.go, which as I understand
it is the preferred way of doing things generally.

Note: I haven't yet fixed the protobuf generation--there are a couple more kinks to work out there. This PR handles thrift and mocks.
@andrewmains12 andrewmains12 force-pushed the amains/gen_fix.review branch from ed85d80 to 869efb4 Compare August 10, 2022 00:12
@andrewmains12 andrewmains12 changed the title WIP: no review yet. Make code generation not require a GOPATH set Make code generation not require a GOPATH set (mocks, thrift) Aug 10, 2022
@andrewmains12 andrewmains12 merged commit 42e0064 into master Aug 10, 2022
@andrewmains12 andrewmains12 deleted the amains/gen_fix.review branch August 10, 2022 16:39
andrewmains12 added a commit that referenced this pull request Aug 10, 2022
Similar to #4135

Since m3 is now a go.mod project, it's no longer necessary to be checked out under GOPATH.

This PR makes our code generation reflect that fact. I've switched to use of relative paths in generate.go, which as I understand
it is the preferred way of doing things generally.

Our proto-gen script now takes in an actual path to proto files vs a logical path. It infers the logical repo path from the actual path.

Fixes #4134
safa-topal pushed a commit to aiven/m3 that referenced this pull request Jan 12, 2023
… protobuf) (m3db#4135)

Since m3 is now a go.mod project, it's no longer necessary to be checked out under GOPATH.

This PR makes our code generation reflect that fact. I've switched to use of relative paths in generate.go, which as I understand
it is the preferred way of doing things generally.

Note: I haven't yet fixed the protobuf generation--there are a couple more kinks to work out there. This PR handles thrift and mocks.
andrewmains12 added a commit that referenced this pull request Mar 9, 2023
Similar to #4135

Since m3 is now a go.mod project, it's no longer necessary to be checked out under GOPATH.

This PR makes our code generation reflect that fact. I've switched to use of relative paths in generate.go, which as I understand
it is the preferred way of doing things generally.

Our proto-gen script now takes in an actual path to proto files vs a logical path. It infers the logical repo path from the actual path.

Fixes #4134
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.

[devprod] Makefile target for creating mocks is broken
2 participants