"DEBUG_JUJU=1 make build" fails because of extra -X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Jack Shaw |
Bug Description
Hi,
I've tried both Juju 3.3 and main branches and I've noticed that every time I run:
$ DEBUG_JUJU=1 make build
I get the following error:
Building github.
github.
# github.
/snap/go/
make: *** [Makefile:348: /home/pguimarae
That is because there is an extra -X in the Makefile:
define link_flags_version
-X $(PROJECT)
-X $(PROJECT)
-X $(PROJECT)
-X $(PROJECT)
endef
# Compile with debug flags if requested.
ifeq ($(DEBUG_JUJU), 1)
COMPILE_FLAGS = -gcflags "all=-N -l"
- LINK_FLAGS = "-X $(link_
+ LINK_FLAGS = "$(link_
else
The change above resolves the issue.
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Jack Shaw (jack-shaw) |
milestone: | none → 3.3-beta2 |
Changed in juju: | |
milestone: | 3.3-beta2 → 3.3-rc1 |
Changed in juju: | |
milestone: | 3.3-rc1 → 3.3-rc2 |
Changed in juju: | |
milestone: | 3.3-rc2 → none |