fix: correct global env path, migration join, and test app dirs

- Use DOKKU_LIB_ROOT instead of DOKKU_ROOT in getGlobalFile() to match
  the intended new config path layout
- Add missing comma in filepath.Join for old app ENV migration path
- Revert common_test.go app dirs to DOKKU_ROOT since app detection
  still uses AppRoot()
This commit is contained in:
Jose Diaz-Gonzalez
2026-04-25 02:39:02 -04:00
parent bc4d3a76b9
commit d846324fd5
3 changed files with 4 additions and 4 deletions

View File

@@ -10,11 +10,11 @@ import (
var (
testAppName = "test-app-1"
testAppDir = strings.Join([]string{"/var/lib/dokku/config/config/", testAppName}, "")
testAppDir = strings.Join([]string{"/home/dokku/", testAppName}, "")
testEnvFile = strings.Join([]string{testAppDir, "/ENV"}, "")
testEnvLine = "export testKey=TESTING"
testAppName2 = "01-test-app-1"
testAppDir2 = strings.Join([]string{"/var/lib/dokku/config/config/", testAppName2}, "")
testAppDir2 = strings.Join([]string{"/home/dokku/", testAppName2}, "")
testEnvFile2 = strings.Join([]string{testAppDir2, "/ENV"}, "")
testEnvLine2 = "export testKey=TESTING"
)