Skip to content

build with node16 in snap#18508

Merged
techknowlogick merged 2 commits into
go-gitea:mainfrom
techknowlogick:snap-upse-node16
Jan 31, 2022
Merged

build with node16 in snap#18508
techknowlogick merged 2 commits into
go-gitea:mainfrom
techknowlogick:snap-upse-node16

Conversation

@techknowlogick
Copy link
Copy Markdown
Member

as title

@techknowlogick techknowlogick added topic/distribution This PR changes something about the packaging of Gitea skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Jan 31, 2022
@techknowlogick techknowlogick added this to the 1.17.0 milestone Jan 31, 2022
Comment thread snap/snapcraft.yaml

override-build: |
set -x
sed -i 's/os.Getuid()/1/g' modules/setting/setting.go
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snap runs as root hence the sed cmd.

Copy link
Copy Markdown
Contributor

@wxiaoguang wxiaoguang May 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very hacky and dangerous.

Snap runs as root, it doesn't mean Gitea also runs as root here.

I think this change is not right and should be reverted.


Update: #37602 (comment) and fix: "run as root" check #37622

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 31, 2022
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 31, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 31, 2022
@techknowlogick techknowlogick merged commit 70e614b into go-gitea:main Jan 31, 2022
@techknowlogick techknowlogick deleted the snap-upse-node16 branch January 31, 2022 22:52
zjjhot added a commit to zjjhot/gitea that referenced this pull request Feb 2, 2022
* giteaofficial/main: (37 commits)
  Collaborator trust model should trust collaborators (go-gitea#18539)
  Detect conflicts with 3way merge (go-gitea#18536)
  [skip ci] Updated translations via Crowdin
  Update 1.16.0 changelog to set go-gitea#17846 as breaking (go-gitea#18533)
  In docker rootless use $GITEA_APP_INI if provided (go-gitea#18524)
  revert to node14 for snapcraft
  Add `GetUserTeams` (go-gitea#18499)
  Fix review excerpt (go-gitea#18502)
  Update JS dependencies, fix lint (go-gitea#18389)
  add test coverage for original author conversion during migrations (go-gitea#18506)
  add gitea-fmt back (go-gitea#18526)
  Fix non-ASCII search on database  (go-gitea#18437)
  Use "read" value for General Access (go-gitea#18496)
  Fix for AvatarURL database type (go-gitea#18487)
  Remove go 1.15 support (go-gitea#18511)
  [skip ci] Updated translations via Crowdin
  Use `ImagedProvider` for gplus oauth2 provider (go-gitea#18504)
  build with node16 in snap (go-gitea#18508)
  point to s3 endpoint directly (go-gitea#18497)
  Fix OAuth Source Edit Page (go-gitea#18495)
  ...
Chianina pushed a commit to Chianina/gitea that referenced this pull request Mar 28, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. topic/distribution This PR changes something about the packaging of Gitea

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants