Skip to content

Commit b531493

Browse files
committed
chore: update dependencies
1 parent d3ef33f commit b531493

1,126 files changed

Lines changed: 67343 additions & 19421 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/e2e-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Set up Go
4444
uses: actions/setup-go@v2
4545
with:
46-
go-version: 1.17
46+
go-version: 1.19
4747

4848
- name: Build devspacehelper
4949
run: |

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/setup-go@v3
2121
with:
22-
go-version: 1.18
22+
go-version: 1.19
2323
- uses: actions/checkout@v3
2424
- name: Run golangci-lint
2525
uses: golangci/golangci-lint-action@v3.2.0

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Set up Go
6262
uses: actions/setup-go@v1
6363
with:
64-
go-version: 1.17
64+
go-version: 1.19
6565
- id: get_version
6666
run: |
6767
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')

.github/workflows/unit-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Go
3030
uses: actions/setup-go@v1
3131
with:
32-
go-version: 1.17
32+
go-version: 1.19
3333

3434
- name: Check out code into the Go module directory
3535
uses: actions/checkout@v1
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up Go
4646
uses: actions/setup-go@v1
4747
with:
48-
go-version: 1.17
48+
go-version: 1.19
4949

5050
- name: Check out code into the Go module directory
5151
uses: actions/checkout@v1

assets/assets.go

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/init.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bytes"
55
"context"
66
"fmt"
7-
"io/ioutil"
87
"os"
98
"path/filepath"
109
"regexp"
@@ -619,7 +618,7 @@ func (cmd *InitCmd) initDockerCompose(f factory.Factory, composePath string) err
619618
}
620619

621620
func annotateConfig(configPath string) error {
622-
annotatedConfig, err := ioutil.ReadFile(configPath)
621+
annotatedConfig, err := os.ReadFile(configPath)
623622
if err != nil {
624623
panic(err)
625624
}
@@ -677,7 +676,7 @@ func annotateConfig(configPath string) error {
677676
# size: 5Gi
678677
`)...)
679678

680-
err = ioutil.WriteFile(configPath, annotatedConfig, os.ModePerm)
679+
err = os.WriteFile(configPath, annotatedConfig, os.ModePerm)
681680
if err != nil {
682681
return err
683682
}
@@ -853,7 +852,7 @@ func appendToIgnoreFile(ignoreFile, content string) error {
853852
if os.IsNotExist(err) {
854853
_ = fsutil.WriteToFile([]byte(content), ignoreFile)
855854
} else {
856-
fileContent, err := ioutil.ReadFile(ignoreFile)
855+
fileContent, err := os.ReadFile(ignoreFile)
857856
if err != nil {
858857
return errors.Errorf("Error reading file %s: %v", ignoreFile, err)
859858
}

cmd/root.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"flag"
66
"fmt"
77
"github.com/loft-sh/devspace/pkg/devspace/kill"
8-
"io/ioutil"
8+
"io"
99
"os"
1010
"strings"
1111
"sync"
@@ -303,12 +303,12 @@ func disableKlog() {
303303
flagSet := &flag.FlagSet{}
304304
klog.InitFlags(flagSet)
305305
_ = flagSet.Set("logtostderr", "false")
306-
klog.SetOutput(ioutil.Discard)
306+
klog.SetOutput(io.Discard)
307307

308308
flagSet = &flag.FlagSet{}
309309
klogv2.InitFlags(flagSet)
310310
_ = flagSet.Set("logtostderr", "false")
311-
klogv2.SetOutput(ioutil.Discard)
311+
klogv2.SetOutput(io.Discard)
312312
}
313313

314314
func parseConfig(f factory.Factory) (*RawConfig, error) {

cmd/run_pipeline.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"github.com/spf13/cobra"
3232
"gopkg.in/yaml.v3"
3333
"io"
34-
"io/ioutil"
3534
"os"
3635
)
3736

@@ -274,7 +273,7 @@ func initialize(ctx context.Context, f factory.Factory, options *CommandOptions,
274273
log.StartFileLogging()
275274

276275
// create a temporary folder for us to use
277-
tempFolder, err := ioutil.TempDir("", "devspace-")
276+
tempFolder, err := os.MkdirTemp("", "devspace-")
278277
if err != nil {
279278
return nil, errors.Wrap(err, "create temporary folder")
280279
}

cmd/ui.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/loft-sh/devspace/pkg/devspace/config/localcache"
99
devspacecontext "github.com/loft-sh/devspace/pkg/devspace/context"
1010
"github.com/loft-sh/devspace/pkg/devspace/kubectl"
11-
"io/ioutil"
11+
"io"
1212
"net/http"
1313
"time"
1414

@@ -108,7 +108,7 @@ func (cmd *UICmd) RunUI(f factory.Factory) error {
108108
}
109109

110110
defer response.Body.Close()
111-
contents, err := ioutil.ReadAll(response.Body)
111+
contents, err := io.ReadAll(response.Body)
112112
if err != nil {
113113
checkPort++
114114
continue

docs/hack/cli/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"fmt"
5-
"io/ioutil"
65
"log"
76
"os"
87
"path"
@@ -78,14 +77,14 @@ func main() {
7877
return nil
7978
}
8079

81-
content, err := ioutil.ReadFile(path)
80+
content, err := os.ReadFile(path)
8281
if err != nil {
8382
return err
8483
}
8584

8685
newContents := fixSynopsisRegexp.ReplaceAllString(string(content), "$2$3$7$8```\n$4\n```\n\n\n## Flags$10\n## Global & Inherited Flags$13")
8786

88-
err = ioutil.WriteFile(path, []byte(newContents), 0)
87+
err = os.WriteFile(path, []byte(newContents), 0)
8988
if err != nil {
9089
return err
9190
}

0 commit comments

Comments
 (0)