Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartboyd119 committed Sep 24, 2024
1 parent 66aa41d commit c810f7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Directories containing independent Go modules.
MODULE_DIRS = .
GOLANGCI_VERSION=1.61.0
AVRO_CMD_PATH=github.com/hamba/avro/v2/cmd/[email protected]


# Sets up kafka broker using docker compose
Expand Down Expand Up @@ -47,12 +48,12 @@ golangci-lint:
gen: protoc-exists
cd test/evolution; protoc --proto_path=. --go_out=./ ./schema_1.proto
cd test/evolution; protoc --proto_path=. --go_out=./ ./schema_2.proto
go run github.com/hamba/avro/v2/cmd/[email protected] -pkg main -o ./example/producer_avro/event_gen.go ./example/producer_avro/event.avsc
go run github.com/hamba/avro/v2/cmd/[email protected] -pkg main -o ./example/worker_avro/event_gen.go ./example/worker_avro/event.avsc
go run ${AVRO_CMD_PATH} -pkg main -o ./example/producer_avro/event_gen.go ./example/producer_avro/event.avsc
go run ${AVRO_CMD_PATH} -pkg main -o ./example/worker_avro/event_gen.go ./example/worker_avro/event.avsc
mkdir -p ./test/evolution/avro1
mkdir -p ./test/evolution/avro2
go run github.com/hamba/avro/v2/cmd/[email protected] -pkg avro1 -o ./test/evolution/avro1/schema_1_gen.go ./test/evolution/schema_1.avsc
go run github.com/hamba/avro/v2/cmd/[email protected] -pkg avro2 -o ./test/evolution/avro2/schema_2_gen.go ./test/evolution/schema_2.avsc
go run ${AVRO_CMD_PATH} -pkg avro1 -o ./test/evolution/avro1/schema_1_gen.go ./test/evolution/schema_1.avsc
go run ${AVRO_CMD_PATH} -pkg avro2 -o ./test/evolution/avro2/schema_2_gen.go ./test/evolution/schema_2.avsc
go run github.com/heetch/avro/cmd/[email protected] -p avro1 -d ./test/evolution/avro1x ./test/evolution/schema_1.avsc

# a forced dependency which fails (and prints) if `avro-tools` isn't installed
Expand Down

0 comments on commit c810f7d

Please sign in to comment.