Skip to content

Commit 304c332

Browse files
update goreleaser and format certgen.go
1 parent 2f43c7a commit 304c332

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
before:
22
hooks:
3-
- go mod tidy
3+
- go mod tidy -compat=1.17
44
builds:
55
-
66
goos:

certgen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func main() {
148148
}
149149
log.Println("wrote public.crt")
150150

151-
keyOut, err := os.OpenFile("private.key", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
151+
keyOut, err := os.OpenFile("private.key", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o600)
152152
if err != nil {
153153
log.Fatalf("Failed to open private.key for writing: %v", err)
154154
return

0 commit comments

Comments
 (0)