#63305 closed defect (fixed)
goreleaser @0.174.1_1: sh: {MACPORTS_LEGACY_SUPPORT_LDFLAGS=-L/opt/local/lib: No such file or directory
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | herbygillot (Herby Gillot) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | ||
Port: | goreleaser |
Description
There is something wrong with the quoting with regard to the adding of the legacy support flags:
sh: {MACPORTS_LEGACY_SUPPORT_LDFLAGS=-L/opt/local/lib: No such file or directory
Change History (3)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 3 years ago by herbygillot (Herby Gillot)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 3 years ago by herbygillot (Herby Gillot)
The completions.sh
script does run go
, so we do need all the environment variables provided by legacysupport
. Solution here was just cramming all the build steps into a single build.sh
and setting that as the build.cmd
so that it gets all the environment variables that would ordinarily go to default build command (go build
).
Note: See
TracTickets for help on using
tickets.
The problem is in this block:
build.env
is a Tcl list, so Tcl is converting that list to a string representation here for you, but it's not the representation you need. The problem probably only arises when an env value contains a space, which it does when the legacysupport portgroup is in use, which I guess it is here.I suspect you don't need the legacy support environment variables in order to run this script. Maybe explicitly listing the ones you do need would be a solution, rather than trying to use
build.env
.