fix: "run as root" check (#37622)

Remove the hacky and fragile `sed os.Getuid()` patch.
This commit is contained in:
wxiaoguang
2026-05-09 23:32:30 +08:00
committed by GitHub
parent ce089f498b
commit 093c9e8ee6
2 changed files with 27 additions and 21 deletions
-1
View File
@@ -73,7 +73,6 @@ parts:
override-build: |
set -x
sed -i 's/os.Getuid()/1/g' modules/setting/setting.go
npm install -g pnpm
TAGS="bindata pam cert" make build
install -D gitea "${SNAPCRAFT_PART_INSTALL}/gitea"