Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583238 - golang-build.eclass: EGO_BUILD_FLAGS doesn't support quoted arguments
Summary: golang-build.eclass: EGO_BUILD_FLAGS doesn't support quoted arguments
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-16 20:40 UTC by .
Modified: 2019-02-24 19:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description . 2016-05-16 20:40:10 UTC
```
# @ECLASS-VARIABLE: EGO_BUILD_FLAGS
# @DEFAULT_UNSET
# @DESCRIPTION:
# This allows you to pass build flags to the Go compiler. These flags
# are common to the "go build" and "go install" commands used below.
# Please emerge dev-lang/go and run "go help build" for the
# documentation for these flags.
#
# Example:
# @CODE
# EGO_BUILD_FLAGS="-ldflags \"-X main.version ${PV}\""
# @CODE
```

That example doesn't work.

I suggest to create an internal array filled with this variable ran through eval.
Comment 1 g4s8.public 2019-02-24 19:43:40 UTC
Is there any progress on this bug? I also can't configure -ldflags build argument because of it.