Skip to content

Commit

Permalink
U: energy cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Dec 16, 2024
1 parent 881f8c2 commit 2d5e6ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/internal/build/build_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func build(c *command.Config, proj *project.Project) (err error) {
args = append(args, "-o", outputFilename)
// GOOS=windows GOARCH=386
if c.Build.OS != "" {
os.Setenv("GOOS", c.Build.OS.Value())
os.Setenv("GOOS", string(c.Build.OS))
}
if c.Build.ARCH != "" {
os.Setenv("GOARCH", c.Build.ARCH.Value())
os.Setenv("GOARCH", string(c.Build.ARCH))
}
gocmd := env.GlobalDevEnvConfig.GoCMD()
if gocmd != "" {
Expand Down
4 changes: 2 additions & 2 deletions cmd/internal/build/build_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func build(c *command.Config, proj *project.Project) (err error) {
args = append(args, "-o", outputFilename)
// GOOS=windows GOARCH=386
if c.Build.OS != "" {
os.Setenv("GOOS", c.Build.OS.Value())
os.Setenv("GOOS", string(c.Build.OS))
}
if c.Build.ARCH != "" {
os.Setenv("GOARCH", c.Build.ARCH.Value())
os.Setenv("GOARCH", string(c.Build.ARCH))
}
gocmd := env.GlobalDevEnvConfig.GoCMD()
if gocmd != "" {
Expand Down
4 changes: 2 additions & 2 deletions cmd/internal/build/build_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ func build(c *command.Config, proj *project.Project) (err error) {
args = append(args, "-o", outputFilename)
// GOOS=windows GOARCH=386
if c.Build.OS != "" {
os.Setenv("GOOS", c.Build.OS.Value())
os.Setenv("GOOS", string(c.Build.OS))
}
if c.Build.ARCH != "" {
os.Setenv("GOARCH", c.Build.ARCH.Value())
os.Setenv("GOARCH", string(c.Build.ARCH))
}
gocmd := env.GlobalDevEnvConfig.GoCMD()
if gocmd != "" {
Expand Down

0 comments on commit 2d5e6ec

Please sign in to comment.