Skip to content

Commit 894147e

Browse files
RestartFURestartFU
andauthored
chore: simplify protobuf generation (#20)
* chore: simplify protobuf generation * various changes * various changes * various changes * various changes * various changes --------- Co-authored-by: RestartFU <me@restartfu.com>
1 parent bec52e9 commit 894147e

43 files changed

Lines changed: 2454 additions & 4657 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
.PHONY: run proto
2+
13
run:
24
cd cmd && go run .
5+
proto:
6+
cd proto && buf generate
7+
./scripts/post_generation.sh

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,9 @@ dragonfly-plugins/
254254
- **[Protocol Buffer Definitions](plugin/proto/types/plugin.proto)** - API reference
255255
- **[Plugin Architecture](docs/plugin-architecture.md)** - Design documentation
256256

257+
258+
## Protobuf generation
259+
to generate our protobuf types, you will need to install [buf](https://buf.build/docs/cli/installation/) and then run
260+
```
261+
make proto
262+
```

dragonfly

Submodule dragonfly deleted from 930c985

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module github.com/secmc/plugin
22

33
go 1.25.0
44

5-
replace github.com/df-mc/dragonfly => ./dragonfly
6-
75
require (
86
github.com/df-mc/dragonfly v0.10.10-0.20251115132555-564b905699ba
97
github.com/didntpot/pregdk v0.0.0-20251104095621-63cf2e4d7716
@@ -37,4 +35,4 @@ require (
3735
golang.org/x/text v0.27.0 // indirect
3836
google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b // indirect
3937
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
40-
)
38+
)

proto/Makefile

Lines changed: 0 additions & 30 deletions
This file was deleted.

proto/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

proto/buf.gen.cpp.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

proto/buf.gen.php.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

proto/buf.gen.py.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

proto/buf.gen.rs.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)