forked from tiiuae/ghaf-givc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devshell.toml
39 lines (34 loc) · 899 Bytes
/
devshell.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
[devshell]
name = "givc-devshell"
packages = [
"go",
"gotests",
"gopls",
"golangci-lint",
"rustc",
"rustfmt",
"cargo",
"pkgs.stdenv.cc", # Need for build rust components
"protobuf",
"protoc-gen-go",
"protoc-gen-go-grpc",
"grpcurl"
]
[[commands]]
help = "Generate go files from protobuffers"
name = "protogen"
command = "./api/protoc.sh"
[[commands]]
help = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers"
name = "gcl"
command = "grpcurl"
[[commands]]
help = "Update go dependencies"
name = "go-update"
command = "go get -u ./... && go mod tidy && echo Done - do not forget to update the vendorHash in the packages (use pkgs.lib.fakeHash)."
[[commands]]
help = "golang linter"
package = "golangci-lint"
category = "linters"