detached 53671bc

chore(build): load .env.local and allow overriding Go caches (GOMODCACHE/GOCACHE/GOTMPDIR)

commit
53671bc402aa4e7cbbe392b74c09817d0deb8abb
author
bamen · · 2025-09-09 20:36 UTC
committer
bamen · · 2025-09-09 21:34 UTC
parent
2322edd
signature
unsigned
1 file · +11 -2
M Makefile +11 -2
@@ -2,13 +2,22 @@
22
33 .PHONY: build build-frontend test lint clean install-tools dev generate help check init build-static
44
5+# Load local overrides from .env.local if present (Makefile syntax)
6+ifneq (,$(wildcard .env.local))
7+include .env.local
8+export
9+endif
10+
511 # Variables
612 BINARY_NAME=dumber
713 MAIN_PATH=.
814 DIST_DIR=dist
915
10-# Local caches to avoid $HOME permission issues in sandboxed environments
11-GOENV=GOMODCACHE=$(PWD)/tmp/go-mod GOCACHE=$(PWD)/tmp/go-cache GOTMPDIR=$(PWD)/tmp
16+# Local caches to avoid $HOME permission issues (override via .env.local)
17+GOMODCACHE?=$(CURDIR)/tmp/go-mod
18+GOCACHE?=$(CURDIR)/tmp/go-cache
19+GOTMPDIR?=$(CURDIR)/tmp
20+GOENV=GOMODCACHE=$(GOMODCACHE) GOCACHE=$(GOCACHE) GOTMPDIR=$(GOTMPDIR)
1221
1322 # Version information from git
1423 VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "v0.0.0-dev")
@@ -2,13 +2,22 @@
2 2
3 .PHONY: build build-frontend test lint clean install-tools dev generate help check init build-static3 .PHONY: build build-frontend test lint clean install-tools dev generate help check init build-static
4 4
5+# Load local overrides from .env.local if present (Makefile syntax)
6+ifneq (,$(wildcard .env.local))
7+include .env.local
8+export
9+endif
10+
5 # Variables11 # Variables
6 BINARY_NAME=dumber12 BINARY_NAME=dumber
7 MAIN_PATH=.13 MAIN_PATH=.
8 DIST_DIR=dist14 DIST_DIR=dist
9 15
10-# Local caches to avoid $HOME permission issues in sandboxed environments16+# Local caches to avoid $HOME permission issues (override via .env.local)
11-GOENV=GOMODCACHE=$(PWD)/tmp/go-mod GOCACHE=$(PWD)/tmp/go-cache GOTMPDIR=$(PWD)/tmp17+GOMODCACHE?=$(CURDIR)/tmp/go-mod
18+GOCACHE?=$(CURDIR)/tmp/go-cache
19+GOTMPDIR?=$(CURDIR)/tmp
20+GOENV=GOMODCACHE=$(GOMODCACHE) GOCACHE=$(GOCACHE) GOTMPDIR=$(GOTMPDIR)
12 21
13 # Version information from git22 # Version information from git
14 VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "v0.0.0-dev")23 VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "v0.0.0-dev")

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close