Skip to content

Commit f1fc649

Browse files
authored
Merge pull request #7 from guggero/stdin-eof
store-secret: read up to EOF from stdin
2 parents 9fb033b + a79e5f9 commit f1fc649

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cmd_store_secret.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"bufio"
55
"fmt"
6+
"io"
67
"os"
78
"path/filepath"
89

@@ -83,7 +84,7 @@ func (x *storeSecretCommand) Execute(args []string) error {
8384
default:
8485
log("Reading secret from stdin")
8586
secret, err := bufio.NewReader(os.Stdin).ReadString('\n')
86-
if err != nil {
87+
if err != nil && err != io.EOF {
8788
return fmt.Errorf("error reading secret from stdin: %v",
8889
err)
8990
}

dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG GO_VERSION=1.17.6
22
ARG BASE_IMAGE=lightninglabs/lnd
3-
ARG BASE_IMAGE_VERSION=0.14.2-beta
3+
ARG BASE_IMAGE_VERSION=v0.14.2-beta
44

55
FROM golang:${GO_VERSION}-alpine as builder
66

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const (
3232
AppMinor uint = 1
3333

3434
// AppPatch defines the application patch for this binary.
35-
AppPatch uint = 2
35+
AppPatch uint = 3
3636

3737
// AppPreRelease MUST only contain characters from semanticAlphabet
3838
// per the semantic versioning spec.

0 commit comments

Comments
 (0)