Skip to content

Commit 987e8c9

Browse files
committed
update dependencies
1 parent fbaab1c commit 987e8c9

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

go.mod

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
module megpoid.dev/go/docker-deploy
1+
module go.megpoid.dev/docker-deploy
22

3-
go 1.18
3+
go 1.24
44

55
require (
6-
github.com/spf13/pflag v1.0.5
7-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
6+
github.com/spf13/pflag v1.0.6
7+
gopkg.in/yaml.v3 v3.0.1
88
)
99

1010
require (

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
33
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
44
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
55
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
6-
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
7-
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
6+
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
7+
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
88
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
99
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
1010
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
11-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
12-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
11+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
12+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

main.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"encoding/hex"
77
"fmt"
88
"io"
9-
"io/ioutil"
109
"log"
1110
"os"
1211
"os/exec"
@@ -137,9 +136,9 @@ func loadEnvFromConfigFile(filename string, stdin io.Reader) ([]string, error) {
137136
var err error
138137

139138
if filename == "-" {
140-
yamlFile, err = ioutil.ReadAll(stdin)
139+
yamlFile, err = io.ReadAll(stdin)
141140
} else {
142-
yamlFile, err = ioutil.ReadFile(filename)
141+
yamlFile, err = os.ReadFile(filename)
143142
}
144143

145144
if err != nil {
@@ -160,7 +159,7 @@ func loadAppConfig(filename string) (*appConfig, error) {
160159

161160
for {
162161
configPath := filepath.Join(targetPath, filename)
163-
data, err := ioutil.ReadFile(configPath)
162+
data, err := os.ReadFile(configPath)
164163
if err != nil {
165164
if os.IsNotExist(err) {
166165
if targetPath == rootDir {

0 commit comments

Comments
 (0)