Skip to content

Commit a8e9b92

Browse files
nodeselectorCopilot
andcommitted
chore: honor XDG_DATA_HOME in Makefile install path
gh resolves its data dir from XDG_DATA_HOME (falling back to ~/.local/share/gh), so the hardcoded path put 'make install' in the wrong place for anyone who sets XDG_DATA_HOME. Honor it, keeping the documented default when unset. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cb7d4d9 commit a8e9b92

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
BIN := gh-actions-pin
22
EXT_NAME := gh-actions-pin
3-
EXT_DIR := $(HOME)/.local/share/gh/extensions/$(EXT_NAME)
3+
# Honor XDG_DATA_HOME so this matches where gh actually resolves its data
4+
# dir; fall back to the documented default when it's unset.
5+
XDG_DATA_HOME ?= $(HOME)/.local/share
6+
EXT_DIR := $(XDG_DATA_HOME)/gh/extensions/$(EXT_NAME)
47

58
.PHONY: build test install reinstall uninstall
69

0 commit comments

Comments
 (0)