Skip to content

Commit

Permalink
fix: experimental version comparison for orioledb
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Nov 20, 2023
1 parent b7f3639 commit 06ed38b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/utils/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package utils

import (
"bytes"
_ "embed"
"errors"
"fmt"
Expand Down Expand Up @@ -361,9 +362,15 @@ type (

func LoadConfigFS(fsys afero.Fs) error {
// Load default values
if _, err := toml.Decode(initConfigEmbed, &Config); err != nil {
var buf bytes.Buffer
if err := initConfigTemplate.Execute(&buf, nil); err != nil {
return err
}
dec := toml.NewDecoder(&buf)
if _, err := dec.Decode(&Config); err != nil {
return err
}
// Load user defined config
if metadata, err := toml.DecodeFS(afero.NewIOFS(fsys), ConfigPath, &Config); err != nil {
CmdSuggestion = fmt.Sprintf("Have you set up the project with %s?", Aqua("supabase init"))
cwd, osErr := os.Getwd()
Expand Down

0 comments on commit 06ed38b

Please sign in to comment.