Skip to content

Commit

Permalink
Fix build workflow (#2)
Browse files Browse the repository at this point in the history
Fixed go build workflow
  • Loading branch information
nomoresecretz committed Feb 18, 2024
1 parent 670dc3a commit 8bc2d15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Installing protoc-gen-go
run: |
go get google.golang.org/protobuf/cmd/protoc-gen-go
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- name: Install libpcap
run: sudo apt-get install libpcap-dev
- name: Protoc version
run: PATH=$HOME/bin:$PATH protoc --version
- name: env
run: env && go env && pwd
- name: Protogen
run: protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative $(find . -type f -name '*.proto')
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
run: go test -v ./...
2 changes: 1 addition & 1 deletion server/crypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (c *crypter) Decrypt(s string, data []byte) ([]byte, error) {
}
z, err := zlib.NewReader(cb.NewReader(0))
if err != nil {
return nil, fmt.Errorf("error decrypting (%s)", s, err)
return nil, fmt.Errorf("error decrypting (%s): %w", s, err)
}
defer z.Close()
return io.ReadAll(z)
Expand Down

0 comments on commit 8bc2d15

Please sign in to comment.