Skip to content

Commit 650df0b

Browse files
sapklafriks
authored andcommitted
Enforce osusergo build tag for releases (#6862)
1 parent d9d538c commit 650df0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ release-windows:
325325
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
326326
$(GO) get -u src.techknowlogick.com/xgo; \
327327
fi
328-
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
328+
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
329329
ifeq ($(CI),drone)
330330
cp /build/* $(DIST)/binaries
331331
endif
@@ -335,7 +335,7 @@ release-linux:
335335
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
336336
$(GO) get -u src.techknowlogick.com/xgo; \
337337
fi
338-
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out gitea-$(VERSION) .
338+
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out gitea-$(VERSION) .
339339
ifeq ($(CI),drone)
340340
cp /build/* $(DIST)/binaries
341341
endif
@@ -345,7 +345,7 @@ release-darwin:
345345
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
346346
$(GO) get -u src.techknowlogick.com/xgo; \
347347
fi
348-
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
348+
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
349349
ifeq ($(CI),drone)
350350
cp /build/* $(DIST)/binaries
351351
endif

0 commit comments

Comments
 (0)