File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ builds:
16
16
main : ./cmd/gokeyless
17
17
flags :
18
18
- -tags=pkcs11,netgo
19
- - -buildvcs=false
20
19
ldflags :
21
20
- -s -w -X main.version={{.Version}}
22
21
- id : gokeyless-linux
@@ -28,7 +27,6 @@ builds:
28
27
main : ./cmd/gokeyless
29
28
flags :
30
29
- -tags=pkcs11,netgo
31
- - -buildvcs=false
32
30
ldflags :
33
31
- -s -w -X main.version={{.Version}}
34
32
archives :
Original file line number Diff line number Diff line change @@ -119,13 +119,13 @@ release-github:
119
119
-v /var/run/docker.sock:/var/run/docker.sock \
120
120
-w /go/tmp \
121
121
--env GITHUB_TOKEN \
122
- ghcr.io/gythialy/golang -cross:latest --clean
122
+ ghcr.io/goreleaser/goreleaser -cross:latest --clean
123
123
124
124
125
125
.PHONY : snapshot
126
126
snapshot :
127
127
docker run --rm --privileged -v $(PWD ) :/go/tmp \
128
128
-v /var/run/docker.sock:/var/run/docker.sock \
129
129
-w /go/tmp \
130
- ghcr.io/gythialy/golang -cross:latest --clean --snapshot --skip-publish
130
+ ghcr.io/goreleaser/goreleaser -cross:latest --clean --snapshot --skip-publish
131
131
Original file line number Diff line number Diff line change 8
8
"io"
9
9
"net"
10
10
"os"
11
+ "runtime/debug"
11
12
"strconv"
12
13
"strings"
13
14
"time"
@@ -230,6 +231,10 @@ func runMain() error {
230
231
return nil
231
232
case versionMode :
232
233
fmt .Println ("gokeyless version" , version )
234
+ if info , ok := debug .ReadBuildInfo (); ok {
235
+ fmt .Printf ("%s built with %s\n " , info .Path , info .GoVersion )
236
+ }
237
+
233
238
return nil
234
239
case manualMode && configMode :
235
240
return fmt .Errorf ("can't specify both --manual-activation and --config-only!" )
You can’t perform that action at this time.
0 commit comments