From d32832735c5fe02e83a6a535f76a28fb64d0b55d Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Fri, 15 Dec 2023 20:27:47 +0300 Subject: [PATCH] Pull request 2111: 6545-schema-version Updates #6545. Squashed commit of the following: commit b1969128a99ff21c97feb4e7805b4b8133d7122f Author: Ainar Garipov Date: Fri Dec 15 20:04:37 2023 +0300 home: fix import commit 872ccea1491a8da76cc24db79247438d0ce4d256 Author: Ainar Garipov Date: Fri Dec 15 20:01:15 2023 +0300 all: output schema version --- CHANGELOG.md | 4 ++ internal/configmigrate/configmigrate.go | 5 ++ .../migrations_internal_test.go | 2 +- .../migrator.go | 6 +- .../migrator_test.go | 6 +- .../TestMigrateConfig_Migrate/v1/input.yml | 0 .../TestMigrateConfig_Migrate/v1/output.yml | 0 .../TestMigrateConfig_Migrate/v10/input.yml | 0 .../TestMigrateConfig_Migrate/v10/output.yml | 0 .../TestMigrateConfig_Migrate/v11/input.yml | 0 .../TestMigrateConfig_Migrate/v11/output.yml | 0 .../TestMigrateConfig_Migrate/v12/input.yml | 0 .../TestMigrateConfig_Migrate/v12/output.yml | 0 .../TestMigrateConfig_Migrate/v13/input.yml | 0 .../TestMigrateConfig_Migrate/v13/output.yml | 0 .../TestMigrateConfig_Migrate/v14/input.yml | 0 .../TestMigrateConfig_Migrate/v14/output.yml | 0 .../TestMigrateConfig_Migrate/v15/input.yml | 0 .../TestMigrateConfig_Migrate/v15/output.yml | 0 .../TestMigrateConfig_Migrate/v16/input.yml | 0 .../TestMigrateConfig_Migrate/v16/output.yml | 0 .../TestMigrateConfig_Migrate/v17/input.yml | 0 .../TestMigrateConfig_Migrate/v17/output.yml | 0 .../TestMigrateConfig_Migrate/v18/input.yml | 0 .../TestMigrateConfig_Migrate/v18/output.yml | 0 .../TestMigrateConfig_Migrate/v19/input.yml | 0 .../TestMigrateConfig_Migrate/v19/output.yml | 0 .../TestMigrateConfig_Migrate/v2/input.yml | 0 .../TestMigrateConfig_Migrate/v2/output.yml | 0 .../TestMigrateConfig_Migrate/v20/input.yml | 0 .../TestMigrateConfig_Migrate/v20/output.yml | 0 .../TestMigrateConfig_Migrate/v21/input.yml | 0 .../TestMigrateConfig_Migrate/v21/output.yml | 0 .../TestMigrateConfig_Migrate/v22/input.yml | 0 .../TestMigrateConfig_Migrate/v22/output.yml | 0 .../TestMigrateConfig_Migrate/v23/input.yml | 0 .../TestMigrateConfig_Migrate/v23/output.yml | 0 .../TestMigrateConfig_Migrate/v24/input.yml | 0 .../TestMigrateConfig_Migrate/v24/output.yml | 0 .../TestMigrateConfig_Migrate/v25/input.yml | 0 .../TestMigrateConfig_Migrate/v25/output.yml | 0 .../TestMigrateConfig_Migrate/v26/input.yml | 0 .../TestMigrateConfig_Migrate/v26/output.yml | 0 .../TestMigrateConfig_Migrate/v27/input.yml | 0 .../TestMigrateConfig_Migrate/v27/output.yml | 0 .../TestMigrateConfig_Migrate/v3/input.yml | 0 .../TestMigrateConfig_Migrate/v3/output.yml | 0 .../TestMigrateConfig_Migrate/v4/input.yml | 0 .../TestMigrateConfig_Migrate/v4/output.yml | 0 .../TestMigrateConfig_Migrate/v5/input.yml | 0 .../TestMigrateConfig_Migrate/v5/output.yml | 0 .../TestMigrateConfig_Migrate/v6/input.yml | 0 .../TestMigrateConfig_Migrate/v6/output.yml | 0 .../TestMigrateConfig_Migrate/v7/input.yml | 0 .../TestMigrateConfig_Migrate/v7/output.yml | 0 .../TestMigrateConfig_Migrate/v8/input.yml | 0 .../TestMigrateConfig_Migrate/v8/output.yml | 0 .../TestMigrateConfig_Migrate/v9/input.yml | 0 .../TestMigrateConfig_Migrate/v9/output.yml | 0 internal/{confmigrate => configmigrate}/v1.go | 2 +- .../{confmigrate => configmigrate}/v10.go | 2 +- .../{confmigrate => configmigrate}/v11.go | 2 +- .../{confmigrate => configmigrate}/v12.go | 2 +- .../{confmigrate => configmigrate}/v13.go | 2 +- .../{confmigrate => configmigrate}/v14.go | 2 +- .../{confmigrate => configmigrate}/v15.go | 2 +- .../{confmigrate => configmigrate}/v16.go | 2 +- .../{confmigrate => configmigrate}/v17.go | 2 +- .../{confmigrate => configmigrate}/v18.go | 2 +- .../{confmigrate => configmigrate}/v19.go | 2 +- internal/{confmigrate => configmigrate}/v2.go | 2 +- .../{confmigrate => configmigrate}/v20.go | 2 +- .../{confmigrate => configmigrate}/v21.go | 2 +- .../{confmigrate => configmigrate}/v22.go | 2 +- .../{confmigrate => configmigrate}/v23.go | 2 +- .../{confmigrate => configmigrate}/v24.go | 2 +- .../{confmigrate => configmigrate}/v25.go | 2 +- .../{confmigrate => configmigrate}/v26.go | 2 +- .../{confmigrate => configmigrate}/v27.go | 2 +- internal/{confmigrate => configmigrate}/v3.go | 2 +- internal/{confmigrate => configmigrate}/v4.go | 2 +- internal/{confmigrate => configmigrate}/v5.go | 2 +- internal/{confmigrate => configmigrate}/v6.go | 2 +- internal/{confmigrate => configmigrate}/v7.go | 2 +- internal/{confmigrate => configmigrate}/v8.go | 2 +- internal/{confmigrate => configmigrate}/v9.go | 2 +- .../{confmigrate => configmigrate}/yaml.go | 2 +- internal/home/config.go | 10 +-- internal/home/options.go | 3 +- internal/next/cmd/opt.go | 3 +- internal/version/version.go | 65 +++++++++---------- scripts/make/go-lint.sh | 6 +- 92 files changed, 86 insertions(+), 80 deletions(-) create mode 100644 internal/configmigrate/configmigrate.go rename internal/{confmigrate => configmigrate}/migrations_internal_test.go (99%) rename internal/{confmigrate => configmigrate}/migrator.go (95%) rename internal/{confmigrate => configmigrate}/migrator_test.go (97%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v1/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v1/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v10/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v10/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v11/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v11/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v12/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v12/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v13/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v13/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v14/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v14/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v15/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v15/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v16/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v16/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v17/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v17/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v18/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v18/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v19/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v19/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v2/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v2/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v20/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v20/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v21/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v21/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v22/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v22/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v23/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v23/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v24/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v24/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v25/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v25/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v26/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v26/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v27/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v27/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v3/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v3/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v4/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v4/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v5/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v5/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v6/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v6/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v7/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v7/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v8/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v8/output.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v9/input.yml (100%) rename internal/{confmigrate => configmigrate}/testdata/TestMigrateConfig_Migrate/v9/output.yml (100%) rename internal/{confmigrate => configmigrate}/v1.go (97%) rename internal/{confmigrate => configmigrate}/v10.go (99%) rename internal/{confmigrate => configmigrate}/v11.go (96%) rename internal/{confmigrate => configmigrate}/v12.go (97%) rename internal/{confmigrate => configmigrate}/v13.go (96%) rename internal/{confmigrate => configmigrate}/v14.go (98%) rename internal/{confmigrate => configmigrate}/v15.go (98%) rename internal/{confmigrate => configmigrate}/v16.go (98%) rename internal/{confmigrate => configmigrate}/v17.go (96%) rename internal/{confmigrate => configmigrate}/v18.go (97%) rename internal/{confmigrate => configmigrate}/v19.go (98%) rename internal/{confmigrate => configmigrate}/v2.go (97%) rename internal/{confmigrate => configmigrate}/v20.go (96%) rename internal/{confmigrate => configmigrate}/v21.go (97%) rename internal/{confmigrate => configmigrate}/v22.go (98%) rename internal/{confmigrate => configmigrate}/v23.go (98%) rename internal/{confmigrate => configmigrate}/v24.go (98%) rename internal/{confmigrate => configmigrate}/v25.go (96%) rename internal/{confmigrate => configmigrate}/v26.go (99%) rename internal/{confmigrate => configmigrate}/v27.go (98%) rename internal/{confmigrate => configmigrate}/v3.go (96%) rename internal/{confmigrate => configmigrate}/v4.go (95%) rename internal/{confmigrate => configmigrate}/v5.go (97%) rename internal/{confmigrate => configmigrate}/v6.go (97%) rename internal/{confmigrate => configmigrate}/v7.go (98%) rename internal/{confmigrate => configmigrate}/v8.go (96%) rename internal/{confmigrate => configmigrate}/v9.go (95%) rename internal/{confmigrate => configmigrate}/yaml.go (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18d04dd5..afe12018 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,9 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Added +- The schema version of the configuration file to the output of running + `AdGuardHome` (or `AdGuardHome.exe) with `-v --version` command-line options + ([#6545]). - Ability to disable plain-DNS serving via UI if an encrypted protocol is already used ([#1660]). @@ -34,6 +37,7 @@ NOTE: Add new changes BELOW THIS COMMENT. work on iOS ([#6352]). [#6352]: https://github.com/AdguardTeam/AdGuardHome/issues/6352 +[#6545]: https://github.com/AdguardTeam/AdGuardHome/issues/6545