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

Backport #37622

Remove the hacky and fragile `sed os.Getuid()` patch.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Giteabot
2026-05-09 10:02:21 -07:00
committed by GitHub
parent 631a9b5d16
commit fb159eae8f
2 changed files with 27 additions and 21 deletions

View File

@@ -67,7 +67,6 @@ parts:
override-build: |
set -x
sed -i 's/os.Getuid()/1/g' modules/setting/setting.go
npm install -g pnpm
TAGS="bindata sqlite sqlite_unlock_notify pam cert" make build
install -D gitea "${SNAPCRAFT_PART_INSTALL}/gitea"