Skip to content

Commit

Permalink
Fix PackageName load
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie authored Aug 26, 2024
1 parent 60d32d3 commit 34b4802
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/barrow/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ func (b *BarrowCtx) LoadPackage(cwd string) (*Package, error) {
if err := LoadMetadata(file, &p); err != nil {
return nil, err
}
p.PackageName = b.Getenv("PACKAGE_NAME")
if packageName, ok := os.LookupEnv("PACKAGE_NAME"); ok {
p.PackageName = packageName // overwrite
}
// OS BUILD_VERSION
if version, ok := os.LookupEnv("BUILD_VERSION"); ok {
p.Version = version
Expand Down

0 comments on commit 34b4802

Please sign in to comment.