Bug: Possible wrong PATH used in Makefile #545
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#545
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
describe your environment
tea -v
): 0.9.0+21-gb9c743amain
,master
, ortrunk
)describe the issue (observed vs expected behaviour)
I saw that the Makefile uses the following command to add go to the PATH Variable:
export PATH := $($(GO) env GOPATH)/bin:$(PATH)
, but i think that the correct Version would be:export PATH := $(shell $(GO) env GOPATH)/bin:$(PATH)
.I tested the output of the PATH variable via @echo and the path started with "/bin:...".
But my knowlage of Makefiles is very small and i think it is possible that this is the desired behavior or the change to the path isn't needed.
I created no PR, because i don't know if this is a real bug.
That isn't adding Go to PATH, it's adding the default
GOBIN
to PATH. The line is fairly old, and my best guess it was used to reliably havexgo
in PATH when using the makefile.The Makefile should probably be cleaned up, it makes some assumptions about the user's system in relation to their Go knowledge/installation.
Thanks for the clarification.
I would think, that this issue could be closed, because it isn't a bug