From 7f0bcfb34a22559f64decad0be78446154f061a0 Mon Sep 17 00:00:00 2001 From: Matous Jobanek Date: Thu, 22 Aug 2024 15:21:44 +0200 Subject: [PATCH] stop supporting sandbox.yaml file (#66) --- pkg/configuration/configuration.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkg/configuration/configuration.go b/pkg/configuration/configuration.go index 3d96af9..9f2a246 100644 --- a/pkg/configuration/configuration.go +++ b/pkg/configuration/configuration.go @@ -35,17 +35,6 @@ func Load(term ioutils.Terminal) (KsctlConfig, error) { return KsctlConfig{}, errs.Wrap(err, "unable to read home directory") } path = filepath.Join(home, ".ksctl.yaml") - - if _, err := os.Stat(path); err != nil && os.IsNotExist(err) { - if _, err := os.Stat(filepath.Join(home, ".sandbox.yaml")); err != nil && !os.IsNotExist(err) { - return KsctlConfig{}, err - } else if err == nil { - path = filepath.Join(home, ".sandbox.yaml") - term.Println("The default location of ~/.sandbox.yaml file is deprecated. Rename it to ~/.ksctl.yaml") - } - } else if err != nil { - return KsctlConfig{}, err - } } info, err := os.Stat(path)