Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add provisionerd protobuf definitions#83

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 5 commits intomainfromprovisionerdproto
Jan 29, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions.gitattributes
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
# Generated files
peerbroker/proto/*.golinguist-generated=true
provisionerd/proto/*.golinguist-generated=true
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this 👍

kylecarbs reacted with heart emoji
provisionersdk/proto/*.golinguist-generated=true
28 changes: 20 additions & 8 deletionsMakefile
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,12 @@ bin/coderd:
go build -o bin/coderd cmd/coderd/main.go
.PHONY: bin/coderd

build: site/out bin/coderd
bin/provisionerd:
mkdir -p bin
go build -o bin/provisionerd cmd/provisionerd/main.go
.PHONY: bin/provisionerd
Comment on lines +6 to +9
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! This is a big chunk to get in towards black triangle 🎉

kylecarbs reacted with rocket emoji

build: site/out bin/coderd bin/provisionerd
.PHONY: build

# Runs migrations to output a dump of the database.
Expand DownExpand Up@@ -38,27 +43,34 @@ fmt/sql: ./database/query.sql
fmt: fmt/prettier fmt/sql
.PHONY: fmt

gen: database/generate peerbroker/proto provisionersdk/proto
gen: database/generate peerbroker/proto provisionersdk/proto provisionerd/proto
.PHONY: gen

# Generates the protocol files.
peerbroker/proto: peerbroker/proto/peerbroker.proto
cd peerbroker/proto &&protoc \
protoc \
--go_out=. \
--go_opt=paths=source_relative \
--go-drpc_out=. \
--go-drpc_opt=paths=source_relative \
./peerbroker.proto
./peerbroker/proto/peerbroker.proto
.PHONY: peerbroker/proto

# Generates the protocol files.
provisionerd/proto: provisionerd/proto/provisionerd.proto
protoc \
--go_out=. \
--go_opt=paths=source_relative \
--go-drpc_out=. \
--go-drpc_opt=paths=source_relative \
./provisionerd/proto/provisionerd.proto
.PHONY: provisionerd/proto

provisionersdk/proto: provisionersdk/proto/provisioner.proto
cd provisionersdk/proto &&protoc \
protoc \
--go_out=. \
--go_opt=paths=source_relative \
--go-drpc_out=. \
--go-drpc_opt=paths=source_relative \
./provisioner.proto
./provisionersdk/proto/provisioner.proto
.PHONY: provisionersdk/proto

site/out:
Expand Down
1 change: 1 addition & 0 deletionscodecov.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,4 +29,5 @@ ignore:
# All coderd tests fail if this doesn't work.
- database/databasefake
- peerbroker/proto
- provisionerd/proto
- provisionersdk/proto
207 changes: 104 additions & 103 deletionspeerbroker/proto/peerbroker.pb.go
View file
Open in desktop

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletionspeerbroker/proto/peerbroker_drpc.pb.go
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

Loading

[8]ページ先頭

©2009-2025 Movatter.jp