Skip to content

Commit

Permalink
bump github.com/flarco/g & correct function call in envfile.go
Browse files Browse the repository at this point in the history
- Replaced `g.Rme` with `g.Rmd` in `LoadEnvFile` function to fix a potential bug in environment variable processing.
- Updated the `github.com/flarco/g` dependency to version v0.1.133.
  • Loading branch information
flarco committed Dec 18, 2024
1 parent 8c141ff commit 38fab85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/env/envfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func LoadEnvFile(path string) (ef EnvFile) {
val := strings.TrimPrefix(tuple, key+"=")
envMap[key] = val
}
ef.Body = g.Rme(ef.Body, envMap)
ef.Body = g.Rmd(ef.Body, envMap)

err := yaml.Unmarshal([]byte(ef.Body), &ef)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
github.com/dustin/go-humanize v1.0.1
github.com/fatih/color v1.17.0
github.com/flarco/bigquery v0.0.9
github.com/flarco/g v0.1.132
github.com/flarco/g v0.1.133
github.com/getsentry/sentry-go v0.27.0
github.com/go-sql-driver/mysql v1.8.1
github.com/gobwas/glob v0.2.3
Expand Down

0 comments on commit 38fab85

Please sign in to comment.