Simplify Go installation and support standard OpenCode releases
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package paths
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestDataLocationIsIndependentOfExecutable(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
t.Setenv("XDG_DATA_HOME", dir)
|
||||
db, err := Database()
|
||||
if err != nil || db != filepath.Join(dir, "pipelines", "pipelines.db") {
|
||||
t.Fatal(db, err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user