From d3876ed709361b4900a34f7ea24dba27da8c67c9 Mon Sep 17 00:00:00 2001 From: kenriortega Date: Tue, 26 Oct 2021 18:45:45 -0400 Subject: [PATCH] fix: gorelease main entry point --- .gitignore | 3 ++- .goreleaser.yml | 2 +- makefile | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0eeefdf..77f33f1 100755 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,5 @@ build *.crt *.key *.pem -*.csr \ No newline at end of file +*.csr +dist \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 7e416e4..9d7e563 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,7 +21,7 @@ builds: # Notice: when used with `gomod.proxy`, this must be a package. # # Default is `.`. - main: ./cmd/cli + main: ./cmd/ # Binary name. # Can be a path (e.g. `bin/app`) to wrap the binary in a directory. diff --git a/makefile b/makefile index 3c7b1df..e7e51a5 100644 --- a/makefile +++ b/makefile @@ -35,4 +35,6 @@ compress: grpcsvr: go run examples/calculator/calc_server/server.go grpccli: - go run examples/calculator/calc_client/client.go \ No newline at end of file + go run examples/calculator/calc_client/client.go +releaser: + goreleaser release --snapshot --rm-dist \ No newline at end of file