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

Refactor/replace protokit #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coperius
Copy link

Replace github.com/pseudomuto/protokit based on the deprecated github.com/golang/protobuf package with a custom plugin wrapper that uses the actual google.golang.org/protobuf package

@onokonem onokonem self-assigned this Oct 18, 2024
@onokonem
Copy link
Member

Hi @coperius ,

sorry for a huge delay with answer

I've changed the upstream a bit to make the code more testable and protokit more replaceable

would you be able to rebase your PR with the lates upstream?

thank you!

1 similar comment
@onokonem
Copy link
Member

Hi @coperius ,

sorry for a huge delay with answer

I've changed the upstream a bit to make the code more testable and protokit more replaceable

would you be able to rebase your PR with the lates upstream?

thank you!

@coperius
Copy link
Author

It's OK. But maybe you forgot to delete the test data record in the function?
func (k Kit) RunPluginWithIO(p Plugin, r io.Reader, w io.Writer) error { in file kit.go

@onokonem
Copy link
Member

fixed, thank you

Replace protokit based on the deprecated "github.com/golang/protobuf" package with a custom plugin wrapper that uses vanilla "google.golang.org/protobuf" package

- Replace protokit to google protobuf in generator
- Add tests for generator
- Replace protokit to google protobuf in kit
- Add tests for kit
- Fix TemplateValue receiver name
- Fix README.md
- Fix go.mod/go.sum
- Fix linter settings
@coperius
Copy link
Author

coperius commented Nov 1, 2024

Done

@onokonem
Copy link
Member

onokonem commented Nov 5, 2024

I see too much unrelated refactoring.

It's ok in general, but make reviewing way harder

would you be able to stick to the current code layout for the protokit replacement task?

or even provide a refactoring PR first

thank you

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.

2 participants