X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=main.go;h=6594bdb8dbb33b242c89a8a1961b8ff330ac86f9;hb=2c9ae6a5a27ae2f2e23495c613e7a53aed8e786c;hp=36586cfefff78b06ef7e27c0adbd65e2411298ed;hpb=51da3506a296b7d5d4185b17364f188292136888;p=src%2Fxds%2Fxds-server.git diff --git a/main.go b/main.go index 36586cf..6594bdb 100644 --- a/main.go +++ b/main.go @@ -168,6 +168,10 @@ func xdsApp(cliCtx *cli.Context) error { } // Retrieve initial Syncthing config + + // FIXME: cannot retrieve default SDK, need to save on disk or somewhere + // else all config to be able to restore it. + defaultSdk := "" stCfg, err := ctx.SThg.ConfigGet() if err != nil { return cli.NewExitError(err, 2) @@ -177,7 +181,8 @@ func xdsApp(cliCtx *cli.Context) error { if relativePath == "" { relativePath = stFld.RawPath } - newFld := xdsconfig.NewFolderConfig(stFld.ID, stFld.Label, ctx.Config.ShareRootDir, strings.Trim(relativePath, "/")) + + newFld := xdsconfig.NewFolderConfig(stFld.ID, stFld.Label, ctx.Config.ShareRootDir, strings.Trim(relativePath, "/"), defaultSdk) ctx.Config.Folders = ctx.Config.Folders.Update(xdsconfig.FoldersConfig{newFld}) }