detached e4dcc49

build: disable CGO for pure Go compilation with puregotk

commit
e4dcc499019ee708f1ba8f212fa5848d41ee0b77
author
bnema · · 2025-12-17 18:48 UTC
parent
dfddb9f
signature
unsigned
1 file · +2 -2
M Makefile +2 -2
@@ -33,7 +33,7 @@ help: ## Show this help message
3333 build: build-frontend ## Build the application (pure Go, no CGO)
3434 @echo "Building $(BINARY_NAME) $(VERSION) using $(NPROCS) cores..."
3535 @mkdir -p $(DIST_DIR)
36- go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
36+ CGO_ENABLED=0 go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
3737 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"
3838
3939 build-frontend: ## Build homepage and blocked pages
@@ -44,7 +44,7 @@ build-frontend: ## Build homepage and blocked pages
4444 build-quick: ## Build without frontend (faster for backend development)
4545 @echo "Building $(BINARY_NAME) $(VERSION) (quick, no frontend)..."
4646 @mkdir -p $(DIST_DIR)
47- go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
47+ CGO_ENABLED=0 go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
4848 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"
4949
5050 # Development targets
@@ -33,7 +33,7 @@ help: ## Show this help message
33 build: build-frontend ## Build the application (pure Go, no CGO)33 build: build-frontend ## Build the application (pure Go, no CGO)
34 @echo "Building $(BINARY_NAME) $(VERSION) using $(NPROCS) cores..."34 @echo "Building $(BINARY_NAME) $(VERSION) using $(NPROCS) cores..."
35 @mkdir -p $(DIST_DIR)35 @mkdir -p $(DIST_DIR)
36- go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)36+ CGO_ENABLED=0 go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
37 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"37 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"
38 38
39 build-frontend: ## Build homepage and blocked pages39 build-frontend: ## Build homepage and blocked pages
@@ -44,7 +44,7 @@ build-frontend: ## Build homepage and blocked pages
44 build-quick: ## Build without frontend (faster for backend development)44 build-quick: ## Build without frontend (faster for backend development)
45 @echo "Building $(BINARY_NAME) $(VERSION) (quick, no frontend)..."45 @echo "Building $(BINARY_NAME) $(VERSION) (quick, no frontend)..."
46 @mkdir -p $(DIST_DIR)46 @mkdir -p $(DIST_DIR)
47- go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)47+ CGO_ENABLED=0 go build -p $(NPROCS) $(LDFLAGS) -o $(DIST_DIR)/$(BINARY_NAME) $(MAIN_PATH)
48 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"48 @echo "Build successful! Binary: $(DIST_DIR)/$(BINARY_NAME)"
49 49
50 # Development targets50 # Development targets

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