Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
5061ef8
fix: upgrade sass from 1.63.4 to 1.93.2
snyk-bot Oct 24, 2025
4566700
fix: upgrade classnames from 2.3.2 to 2.5.1
snyk-bot Oct 24, 2025
c3e619a
fix: upgrade docusaurus-plugin-sass from 0.2.3 to 0.2.6
snyk-bot Oct 24, 2025
0ee85da
fix: ui/package.json & ui/package-lock.json to reduce vulnerabilities
snyk-bot Nov 14, 2025
fe5847b
fix: docs/package.json & docs/yarn.lock to reduce vulnerabilities
snyk-bot Nov 15, 2025
01b5427
fix: examples/kind/package.json to reduce vulnerabilities
snyk-bot Dec 3, 2025
e250869
fix: ui/package.json & ui/package-lock.json to reduce vulnerabilities
snyk-bot Dec 3, 2025
0c9fd2a
fix: ui/package.json & ui/package-lock.json to reduce vulnerabilities
snyk-bot Dec 31, 2025
76faa81
fix: ui/package.json & ui/package-lock.json to reduce vulnerabilities
snyk-bot Jan 10, 2026
0c73745
chore(deps): bump react-timeago from 4.4.0 to 8.3.0 in /ui
dependabot[bot] Jan 12, 2026
562491c
chore(deps): bump whatwg-fetch from 2.0.3 to 3.6.20 in /ui
dependabot[bot] Jan 12, 2026
8edc72e
chore(deps): bump url-loader from 2.1.0 to 4.1.1 in /ui
dependabot[bot] Jan 12, 2026
fa46b97
chore(deps): bump github.com/pkg/sftp from 1.13.1 to 1.13.10
dependabot[bot] Jan 12, 2026
aadc341
chore(deps-dev): bump terser-webpack-plugin from 1.4.6 to 5.3.16 in /ui
dependabot[bot] Jan 12, 2026
2e365ca
chore(deps): bump github.com/evanphx/json-patch
dependabot[bot] Jan 12, 2026
93f4acd
chore(deps): bump tslint from 5.20.1 to 6.1.3 in /ui
dependabot[bot] Jan 12, 2026
3b78d9c
chore(deps): bump sw-precache-webpack-plugin from 0.11.5 to 1.0.0 in /ui
dependabot[bot] Jan 12, 2026
6504fc8
chore(deps): bump github.com/joho/godotenv from 1.3.0 to 1.5.1
dependabot[bot] Jan 12, 2026
40ca817
chore(deps): bump k8s.io/apimachinery from 0.29.0 to 0.35.0
dependabot[bot] Jan 12, 2026
73ddbed
chore(deps): bump github.com/go-resty/resty/v2 from 2.7.0 to 2.17.1
dependabot[bot] Jan 12, 2026
fe4f52d
fix: docs/package.json & docs/yarn.lock to reduce vulnerabilities
snyk-bot Jan 22, 2026
7d5e012
fix: pkg/devspace/compose/testdata/depends_on_with_build/backend/Dock…
snyk-bot Jan 29, 2026
e24298c
fix: examples/kaniko/Dockerfile to reduce vulnerabilities
snyk-bot Feb 7, 2026
16aea68
fix: examples/redeploy-instead-of-hot-reload/Dockerfile to reduce vul…
snyk-bot Feb 12, 2026
2e6f296
fix: examples/dependencies/dependency1/Dockerfile to reduce vulnerabi…
snyk-bot Feb 12, 2026
f1c98ae
fix: examples/kustomize/package.json & examples/kustomize/package-loc…
snyk-bot Feb 12, 2026
f7cdc86
fix: examples/buildkit-in-cluster/package.json & examples/buildkit-in…
snyk-bot Feb 12, 2026
1a14214
fix: examples/buildkit/package.json & examples/buildkit/package-lock.…
snyk-bot Feb 12, 2026
6c53413
fix: examples/custom-builder/custom/Dockerfile to reduce vulnerabilities
snyk-bot Feb 12, 2026
20c2205
fix: examples/hot-reload-container-restart/Dockerfile to reduce vulne…
snyk-bot Feb 12, 2026
12f63ef
fix: ui/package.json & ui/package-lock.json to reduce vulnerabilities
snyk-bot Feb 12, 2026
dc4eaa8
fix: docs/package.json & docs/yarn.lock to reduce vulnerabilities
snyk-bot Feb 14, 2026
f4e8700
fix: ui/package.json & ui/package-lock.json to reduce vulnerabilities
snyk-bot Feb 15, 2026
90a7edc
fix: examples/kind/package.json to reduce vulnerabilities
snyk-bot Feb 20, 2026
2176bce
fix: vendor/github.com/creack/pty/Dockerfile.riscv to reduce vulnerab…
snyk-bot Mar 11, 2026
7bcd839
fix: ui/package.json & ui/package-lock.json to reduce vulnerabilities
snyk-bot Mar 11, 2026
6369bbb
chore(deps): bump inquirer from 7.3.3 to 13.3.2 in /dist/npm
dependabot[bot] Mar 16, 2026
9b15894
chore(deps): bump find-process from 1.4.7 to 2.1.1 in /dist/npm
dependabot[bot] Mar 23, 2026
d85485e
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/ui/react…
zerbitx Mar 24, 2026
23f7905
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/ui/whatw…
zerbitx Mar 24, 2026
2efa002
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/ui/url-l…
zerbitx Mar 24, 2026
8f98148
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com…
zerbitx Mar 24, 2026
61cbc25
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/ui/terse…
zerbitx Mar 24, 2026
da10f57
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com…
zerbitx Mar 24, 2026
10645fa
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/ui/tslin…
zerbitx Mar 24, 2026
c36bedb
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/ui/sw-pr…
zerbitx Mar 24, 2026
63fe885
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com…
zerbitx Mar 24, 2026
aaf2a58
Merge remote-tracking branch 'origin/dependabot/go_modules/k8s.io/api…
zerbitx Mar 24, 2026
c8fb180
Merge remote-tracking branch 'origin/dependabot/go_modules/github.com…
zerbitx Mar 24, 2026
72936f4
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/dist/npm…
zerbitx Mar 24, 2026
ddb349e
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/dist/npm…
zerbitx Mar 24, 2026
36adb80
Merge remote-tracking branch 'origin/snyk-upgrade-e56b2e1b4c8ab503bc7…
zerbitx Mar 24, 2026
bcceeca
Merge remote-tracking branch 'origin/snyk-upgrade-90dbde0732c382de42c…
zerbitx Mar 24, 2026
6887dbd
Merge remote-tracking branch 'origin/snyk-upgrade-3daa6c5103be896731a…
zerbitx Mar 24, 2026
091fd2c
Merge remote-tracking branch 'origin/snyk-fix-13f5a13a003909c372b7953…
zerbitx Mar 24, 2026
07f247b
Merge remote-tracking branch 'origin/snyk-fix-70bd757d56b357d4f47b701…
zerbitx Mar 24, 2026
21b855d
Merge remote-tracking branch 'origin/snyk-fix-492de03cdd00fae62e3888e…
zerbitx Mar 24, 2026
c817cc8
Merge remote-tracking branch 'origin/snyk-fix-8f817c69e2358e7bffd9720…
zerbitx Mar 24, 2026
1ce3417
Merge remote-tracking branch 'origin/snyk-fix-5b8dd027bd24c0a3b3ca514…
zerbitx Mar 24, 2026
67b8f39
Merge remote-tracking branch 'origin/snyk-fix-64330e47ae4d2ded794241c…
zerbitx Mar 24, 2026
1a24935
Merge remote-tracking branch 'origin/snyk-fix-87a505785d38de5e2dffc53…
zerbitx Mar 24, 2026
c4ab881
Merge remote-tracking branch 'origin/snyk-fix-397e614f9943ef24b8c23b3…
zerbitx Mar 24, 2026
d0bb5f3
Merge remote-tracking branch 'origin/snyk-fix-f98cb81cd0d3427a860e783…
zerbitx Mar 24, 2026
a42d69f
Merge remote-tracking branch 'origin/snyk-fix-26afaef8eb52962e75a9343…
zerbitx Mar 24, 2026
567be83
Merge remote-tracking branch 'origin/snyk-fix-c67480bda9264625f82fd70…
zerbitx Mar 24, 2026
5d74311
Merge remote-tracking branch 'origin/snyk-fix-d55dbc9b7480d6bb2b4ea55…
zerbitx Mar 24, 2026
4fe7a7f
Merge remote-tracking branch 'origin/snyk-fix-5c1e69511371bb7bdff9a88…
zerbitx Mar 24, 2026
0e4ee69
Merge remote-tracking branch 'origin/snyk-fix-0d2ba2b619da98e96bdd3bb…
zerbitx Mar 24, 2026
61d932b
Merge remote-tracking branch 'origin/snyk-fix-23504caea96e93505be0c17…
zerbitx Mar 24, 2026
ce9d9ab
Merge remote-tracking branch 'origin/snyk-fix-9a73a3e99af7f055a482412…
zerbitx Mar 24, 2026
69d7d76
Merge remote-tracking branch 'origin/snyk-fix-ec17d77d179d72403b5ec69…
zerbitx Mar 24, 2026
c0dc356
Merge remote-tracking branch 'origin/snyk-fix-90d1fb6f01a36dd8768809a…
zerbitx Mar 24, 2026
9d41f15
Merge remote-tracking branch 'origin/snyk-fix-6790bf2f69679f6bdf1efd2…
zerbitx Mar 24, 2026
060da72
Merge remote-tracking branch 'origin/snyk-fix-8a9509a7ddcd66a421594b1…
zerbitx Mar 24, 2026
e7fa61d
Merge remote-tracking branch 'origin/snyk-fix-d0398ad883a08dff500476a…
zerbitx Mar 24, 2026
a69a336
Merge remote-tracking branch 'origin/snyk-fix-7779c33986f3a38565b5e36…
zerbitx Mar 24, 2026
d26f639
go mod clean up
zerbitx Mar 24, 2026
94376fd
Tweaks to get to a building state
zerbitx Mar 24, 2026
18d2664
matching go.mod version in gh
zerbitx Apr 6, 2026
42028f9
Lint version update
zerbitx Apr 6, 2026
c667a58
npm/node updates
zerbitx Apr 6, 2026
a394027
Updating docs to pass netflify ci tasks
zerbitx Apr 6, 2026
2dd0345
Some fixes for e2e tests
zerbitx Apr 7, 2026
c08b852
Update kube versions under test
zerbitx Apr 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 7 additions & 7 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
strategy:
matrix:
kubernetes_version:
- v1.27.3
- v1.28.0
- v1.35.0
- v1.34.3
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repo
Expand All @@ -36,11 +36,11 @@ jobs:
with:
version: ${{ matrix.kubernetes_version }}

# Creates KinD with using k8s versions from the matrix above
- name: Set up kind with K8s version v1.22.4
# Creates kind using the Kubernetes versions from the matrix above
- name: Set up kind cluster
uses: engineerd/setup-kind@v0.5.0
with:
version: "v0.20.0"
version: "v0.31.0"
image: kindest/node:${{ matrix.kubernetes_version }}

- name: Testing kind cluster set-up
Expand All @@ -53,8 +53,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
go-version: "1.25"

- name: Build devspacehelper
run: |
mkdir -p ~/.devspace/devspacehelper/latest
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- uses: actions/checkout@v3
go-version: "1.25"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
uses: golangci/golangci-lint-action@v7
with:
version: v2.11.4
args:
-v
--config=.golangci.yml
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
registry-url: https://registry.npmjs.org/
- run: |
npm install -g
Expand All @@ -35,10 +35,10 @@ jobs:
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
registry-url: https://registry.npmjs.org/
- run: |
npm install -g
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.25"
- id: get_version
run: |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
go-version: "1.25"

- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand All @@ -40,12 +40,12 @@ jobs:
test-unit-windows:
runs-on: windows-latest
name: unit-test-windows-latest

steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
go-version: "1.25"

- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand Down
26 changes: 11 additions & 15 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
version: "2"

run:
timeout: 10m

issues:
exclude-dirs:
- hack/
- docs/

linters:
disable-all: true
default: none
enable:
# - deadcode # deprecated https://github.com/golangci/golangci-lint/issues/1841
- gosimple
- govet
- ineffassign
- misspell
- unused
# - varcheck # deprecated https://github.com/golangci/golangci-lint/issues/1841
- staticcheck
- staticcheck # includes gosimple and stylecheck in v2
- errcheck
# - goimports
- dupl
- nakedret
- stylecheck
# - gofmt
# - golint
# - structcheck # deprecated https://github.com/golangci/golangci-lint/issues/1841

linters-settings:
gofmt:
simplify: true
dupl:
threshold: 400
settings:
dupl:
threshold: 400
exclusions:
paths:
- hack/
- docs/
170 changes: 124 additions & 46 deletions assets/assets.go

Large diffs are not rendered by default.

19 changes: 8 additions & 11 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@ func (cmd *InitCmd) Run(f factory.Factory) error {
}

// Delete config & overwrite config
os.RemoveAll(".devspace")
_ = os.RemoveAll(".devspace")

// Delete configs path
os.Remove(constants.DefaultConfigsPath)
_ = os.Remove(constants.DefaultConfigsPath)

// Delete config & overwrite config
os.Remove(constants.DefaultConfigPath)
_ = os.Remove(constants.DefaultConfigPath)

// Delete config & overwrite config
os.Remove(constants.DefaultVarsPath)
_ = os.Remove(constants.DefaultVarsPath)

// Execute plugin hook
err = hook.ExecuteHooks(nil, nil, "init")
Expand Down Expand Up @@ -202,7 +202,7 @@ func (cmd *InitCmd) initDevspace(f factory.Factory, configLoader loader.ConfigLo
var config *latest.Config

// create kubectl client
client, err := f.NewKubeClientFromContext(cmd.GlobalFlags.KubeContext, cmd.GlobalFlags.Namespace)
client, err := f.NewKubeClientFromContext(cmd.KubeContext, cmd.Namespace)
if err == nil {
configInterface, err := configLoader.Load(context.TODO(), client, &loader.ConfigOptions{}, cmd.log)
if err == nil {
Expand Down Expand Up @@ -789,15 +789,12 @@ func (cmd *InitCmd) render(f factory.Factory, config *latest.Config) (string, er
// Save temporary file to render it
renderPath := loader.ConfigPath("render.yaml")
err := loader.Save(renderPath, config)
defer os.Remove(renderPath)
defer os.Remove(renderPath) //nolint:errcheck
if err != nil {
return "", errors.Wrap(err, "temp render.yaml")
}

silent := true
if cmd.Debug {
silent = false
}
silent := !cmd.Debug
// Use the render command to render it.
writer := &bytes.Buffer{}
renderCmd := &RunPipelineCmd{
Expand Down Expand Up @@ -858,7 +855,7 @@ func appendToIgnoreFile(ignoreFile, content string) error {
return errors.Errorf("Error writing file %s: %v", ignoreFile, err)
}

defer file.Close()
defer file.Close() //nolint:errcheck
if _, err = file.WriteString(content); err != nil {
return errors.Errorf("Error writing file %s: %v", ignoreFile, err)
}
Expand Down
13 changes: 7 additions & 6 deletions cmd/run_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,28 +100,29 @@ func (cmd *RunPipelineCmd) AddPipelineFlags(f factory.Factory, command *cobra.Co
usage = "Flag " + pipelineFlag.Name
}

if pipelineFlag.Type == "" || pipelineFlag.Type == latest.PipelineFlagTypeBoolean {
switch pipelineFlag.Type {
case "", latest.PipelineFlagTypeBoolean:
val, err := pipelinepkg.GetDefaultValue(pipelineFlag)
if err != nil {
f.GetLog().Errorf("Error parsing default value for flag %s: %#v is not a boolean", pipelineFlag.Name, pipelineFlag.Default)
}

command.Flags().BoolP(pipelineFlag.Name, pipelineFlag.Short, val.(bool), usage)
} else if pipelineFlag.Type == latest.PipelineFlagTypeString {
case latest.PipelineFlagTypeString:
val, err := pipelinepkg.GetDefaultValue(pipelineFlag)
if err != nil {
f.GetLog().Errorf("Error parsing default value for flag %s: %#v is not a string", pipelineFlag.Name, pipelineFlag.Default)
}

command.Flags().StringP(pipelineFlag.Name, pipelineFlag.Short, val.(string), usage)
} else if pipelineFlag.Type == latest.PipelineFlagTypeInteger {
case latest.PipelineFlagTypeInteger:
val, err := pipelinepkg.GetDefaultValue(pipelineFlag)
if err != nil {
f.GetLog().Errorf("Error parsing default value for flag %s: %#v is not an integer", pipelineFlag.Name, pipelineFlag.Default)
}

command.Flags().IntP(pipelineFlag.Name, pipelineFlag.Short, val.(int), usage)
} else if pipelineFlag.Type == latest.PipelineFlagTypeStringArray {
case latest.PipelineFlagTypeStringArray:
val, err := pipelinepkg.GetDefaultValue(pipelineFlag)
if err != nil {
f.GetLog().Errorf("Error parsing default value for flag %s: %#v is not a string array", pipelineFlag.Name, pipelineFlag.Default)
Expand Down Expand Up @@ -467,11 +468,11 @@ func runPipeline(ctx devspacecontext.Context, args []string, options *CommandOpt

// get a stdout writer
stdoutWriter := ctx.Log().Writer(ctx.Log().GetLevel(), true)
defer stdoutWriter.Close()
defer stdoutWriter.Close() //nolint:errcheck

// get a stderr writer
stderrWriter := ctx.Log().Writer(logrus.WarnLevel, true)
defer stderrWriter.Close()
defer stderrWriter.Close() //nolint:errcheck

// start pipeline
err = pipe.Run(ctx.WithLogger(log.NewStreamLoggerWithFormat(stdoutWriter, stderrWriter, ctx.Log().GetLevel(), log.TimeFormat)), args)
Expand Down
30 changes: 17 additions & 13 deletions cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ type SyncCmd struct {

InitialSync string

NoWatch bool
DownloadOnInitialSync bool
DownloadOnly bool
UploadOnly bool
NoWatch bool
DownloadOnInitialSync bool
downloadOnInitialSyncChanged bool
DownloadOnly bool
UploadOnly bool

// used for testing to allow interruption
Ctx context.Context
Expand Down Expand Up @@ -79,6 +80,7 @@ devspace sync --path=.:/app --pod=my-pod --container=my-container
// Print upgrade message if new version available
upgrade.PrintUpgradeMessage(f.GetLog())
plugin.SetPluginCommand(cobraCmd, args)
cmd.downloadOnInitialSyncChanged = cobraCmd.Flags().Changed("download-on-initial-sync")
return cmd.Run(f)
},
}
Expand Down Expand Up @@ -125,7 +127,7 @@ func (cmd *SyncCmd) Run(f factory.Factory) error {
if cmd.ConfigPath != "" {
_, err := os.Stat(cmd.ConfigPath)
if err != nil {
return errors.Errorf("--config is specified, but config %s cannot be loaded: %v", cmd.GlobalFlags.ConfigPath, err)
return errors.Errorf("--config is specified, but config %s cannot be loaded: %v", cmd.ConfigPath, err)
}
}

Expand All @@ -139,7 +141,7 @@ func (cmd *SyncCmd) Run(f factory.Factory) error {
return err
}
if configLoader.Exists() {
if cmd.GlobalFlags.ConfigPath != "" {
if cmd.ConfigPath != "" {
configExists, err := configLoader.SetDevSpaceRoot(logger)
if err != nil {
return err
Expand Down Expand Up @@ -170,7 +172,7 @@ func (cmd *SyncCmd) Run(f factory.Factory) error {
}

var configInterface config.Config
if configLoader.Exists() && cmd.GlobalFlags.ConfigPath != "" {
if configLoader.Exists() && cmd.ConfigPath != "" {
configInterface, err = configLoader.LoadWithCache(context.Background(), localCache, client, configOptions, logger)
if err != nil {
return err
Expand Down Expand Up @@ -208,7 +210,7 @@ func (cmd *SyncCmd) Run(f factory.Factory) error {
devPod: &latest.DevPod{},
syncConfig: &latest.SyncConfig{},
}
if cmd.GlobalFlags.ConfigPath != "" && configInterface != nil {
if cmd.ConfigPath != "" && configInterface != nil {
devSection := configInterface.Config().Dev
syncConfigs := []nameConfig{}
for _, v := range devSection {
Expand All @@ -224,7 +226,7 @@ func (cmd *SyncCmd) Run(f factory.Factory) error {
})
}
if len(syncConfigs) == 0 {
return fmt.Errorf("no sync config found in %s", cmd.GlobalFlags.ConfigPath)
return fmt.Errorf("no sync config found in %s", cmd.ConfigPath)
}

// Check which sync config should be used
Expand Down Expand Up @@ -329,10 +331,12 @@ func (cmd *SyncCmd) applyFlagsToSyncConfig(syncConfig *latest.SyncConfig, option
options = options.WithNamespace(cmd.Namespace)
}

if cmd.DownloadOnInitialSync {
syncConfig.InitialSync = latest.InitialSyncStrategyPreferLocal
} else {
syncConfig.InitialSync = latest.InitialSyncStrategyMirrorLocal
if cmd.downloadOnInitialSyncChanged || syncConfig.InitialSync == "" {
if cmd.DownloadOnInitialSync {
syncConfig.InitialSync = latest.InitialSyncStrategyPreferLocal
} else {
syncConfig.InitialSync = latest.InitialSyncStrategyMirrorLocal
}
}

if cmd.InitialSync != "" {
Expand Down
16 changes: 7 additions & 9 deletions cmd/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/loft-sh/devspace/helper/util/port"
"github.com/loft-sh/devspace/pkg/devspace/config/localcache"
devspacecontext "github.com/loft-sh/devspace/pkg/devspace/context"
"github.com/loft-sh/devspace/pkg/devspace/kubectl"
"io"
"net/http"
"time"

"github.com/loft-sh/devspace/pkg/devspace/hook"

"github.com/loft-sh/devspace/cmd/flags"
"github.com/loft-sh/devspace/helper/util/port"
config2 "github.com/loft-sh/devspace/pkg/devspace/config"
"github.com/loft-sh/devspace/pkg/devspace/config/localcache"
devspacecontext "github.com/loft-sh/devspace/pkg/devspace/context"
"github.com/loft-sh/devspace/pkg/devspace/hook"
"github.com/loft-sh/devspace/pkg/devspace/kubectl"
"github.com/loft-sh/devspace/pkg/devspace/plugin"

"github.com/loft-sh/devspace/cmd/flags"
"github.com/loft-sh/devspace/pkg/devspace/server"
"github.com/loft-sh/devspace/pkg/util/factory"
"github.com/loft-sh/devspace/pkg/util/log"
Expand Down Expand Up @@ -107,7 +105,7 @@ func (cmd *UICmd) RunUI(f factory.Factory) error {
continue
}

defer response.Body.Close()
defer response.Body.Close() //nolint:errcheck
contents, err := io.ReadAll(response.Body)
if err != nil {
checkPort++
Expand Down
Loading
Loading