Skip to content

Commit 40dc734

Browse files
sapkzeripath
authored andcommitted
Enforce osusergo build tag for releases (#6869)
1 parent 6d2f0e5 commit 40dc734

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ release-windows:
326326
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
327327
$(GO) get -u src.techknowlogick.com/xgo; \
328328
fi
329-
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
329+
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
330330
ifeq ($(CI),drone)
331331
cp /build/* $(DIST)/binaries
332332
endif
@@ -336,7 +336,7 @@ release-linux:
336336
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
337337
$(GO) get -u src.techknowlogick.com/xgo; \
338338
fi
339-
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out gitea-$(VERSION) .
339+
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out gitea-$(VERSION) .
340340
ifeq ($(CI),drone)
341341
cp /build/* $(DIST)/binaries
342342
endif
@@ -346,7 +346,7 @@ release-darwin:
346346
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
347347
$(GO) get -u src.techknowlogick.com/xgo; \
348348
fi
349-
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
349+
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
350350
ifeq ($(CI),drone)
351351
cp /build/* $(DIST)/binaries
352352
endif

0 commit comments

Comments
 (0)