1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-08-09 07:42:52 +03:00

Delete old fallbacks and compatible stuff (#791)

Drop ...
* ... DRONE_ and deprecated pipeline environment vars
* ... deprecated sqlite3 file path
This commit is contained in:
6543
2022-09-01 14:31:12 +02:00
committed by GitHub
parent 6a2b7586e5
commit c79d49c862
3 changed files with 4 additions and 12 deletions

View File

@@ -92,7 +92,7 @@ func setupStore(c *cli.Context) (store.Store, error) {
return store, nil
}
// TODO: convert it to a check and fail hard only function in v0.16.0 to be able to remove it in v0.17.0
// TODO: remove it in v1.1.0
// TODO: add it to the "how to migrate from drone docs"
func fallbackSqlite3File(path string) (string, error) {
const dockerDefaultPath = "/var/lib/woodpecker/woodpecker.sqlite"
@@ -149,9 +149,7 @@ func fallbackSqlite3File(path string) (string, error) {
// file is still at old location
_, err = os.Stat(dockerOldPath)
if err == nil {
// TODO: use log.Fatal()... in next version
log.Error().Msgf("found sqlite3 file at deprecated path '%s', please move it to '%s' and update your volume path if necessary", dockerOldPath, dockerDefaultPath)
return dockerOldPath, nil
log.Fatal().Msgf("found sqlite3 file at old path '%s', please move it to '%s' and update your volume path if necessary", dockerOldPath, dockerDefaultPath)
}
// file does not exist at all