Package Details: gogs 1:0.11.91-1

Git Clone URL: https://aur.archlinux.org/gogs.git (read-only, click to copy)
Package Base: gogs
Description: Self Hosted Git Service written in Go
Upstream URL: https://gogs.io
Keywords: git go gogs
Licenses: MIT
Conflicts: gogs-bin, gogs-dev-git, gogs-git
Submitter: kureikain
Maintainer: Martchus
Last Packager: Martchus
Votes: 54
Popularity: 0.000031
First Submitted: 2014-05-12 08:56
Last Updated: 2020-01-21 14:09

Pinned Comments

Martchus commented on 2017-06-12 22:24

Important note: You likely want to use the official Gitea package instead.

Gitea - a fork of Gogs - has been added to the official repositories: https://www.archlinux.org/packages/community/x86_64/gitea

That means for Arch Linux the decision has been made to support Gitea rather than Gogs. Hence I suggest everyone to use Gitea instead of Gogs for new installations. I've been testing Gitea for a while myself now and it works well. So I'm also going to switch fully to Gitea myself.

Nevertheless I'll continue maintaining this package for a while now to support old installations. However, I'm not doing any fine-tuning for this package anymore.

Further notes
  • If anybody was using the Gitea package from my PKGBUILDs repository: It is easy to migrate the official Gitea package because the packages are structured more or less the same. The only significant difference between the packages is that mine was using the user gitea and the official package the user git. So that has to be changed in the config and for the ownership of /var/lib/gitea.
  • It is also possible to install this Gogs package provided here and Gitea at the same time (of course operating on different databases!). That makes it easy to try out Gitea without breaking the existing Gogs installation. Repos can be copied quite easily using my gogs2gitea script. (I'm afraid migrating isn't possible anymore without installing an old Gitea version first.)
Previous "sticky" note

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 ... Next › Last »

Martchus commented on 2018-03-19 22:05

I updated Gogs to use systemd-sysusers in accordance with the official packaging: https://www.archlinux.org/todo/switch-to-systemd-sysusers

This way the install script can be omitted. Hooks will take care of everything instead (even warning about systemctl daemon-reload).

When I upgraded the package on my server, this did not change any existing user/group IDs. So the transition should not cause any trouble.

I also included a script gogs-backup which calls gogs backup using the environment variable and config parameter mentioned in the last comment. It must run as user gogs.

Martchus commented on 2018-02-07 20:58

@drBlaze I haven't tried to restore, but creating a backup is quite easy, eg.:

sudo su gogs
export GOGS_CUSTOM=/var/lib/gogs/custom # the magic line that lets your error go away
gogs backup --config /etc/gogs/app.ini --verbose --target /tmp

drBlaze commented on 2018-02-04 11:26

Has anyone tried to backup & restore? $ gogs backup --config=/etc/gogs/app.ini 2018/02/04 12:02:09 [ INFO] Backup root directory: /tmp/gogs-backup-840218384 2018/02/04 12:02:09 [ INFO] Packing backup files to: gogs-backup 20180204120209.zip 2018/02/04 12:02:09 [FATAL] Fail to include 'custom': open /usr/bin/custom: no such file or directory

Running "systemctl status" confirms Custom path: /usr/bin/custom

This can't be right, right?

davidovitch commented on 2017-12-26 17:15

I had to use an absolute path for the SQLite database file, while the default config setting comes as a relative path. I've added this to the Arch Linux wiki. My installation is running in an Arch linux LXC container, not sure if that makes any difference.

davidovitch commented on 2017-12-23 15:06

@Martchus: thanks! I've updated the Arch Wiki accordingly, maybe a more experienced Gogs user could review the changes I made? For example, I could only see changes taking effect after restarting Gogs (systemctl restart gogs), is that really the case?

I've also tried to use a custom configuration file custom/conf/app.ini (as suggested by the Gogs docs), but I couldn't get that to work using either /usr/share/gogs or /var/lib/gogs as root directory.

Martchus commented on 2017-12-22 20:19

@davidovitch This first-time-configuration via the web UI conflicts with having the config under /etc/gogs indeed. You can decide yourself whether you want to relax the permissions (temporarily) or just edit the config file directly. Note that Gogs only alters this file through the first-time-config. Any other settings are stored in the database.

davidovitch commented on 2017-12-22 20:03

I am a little confused regarding the location of the config file, when finishing off the installation at localhost:3000 (Install steps for first run time) I get:

Fail to save configuration: open /etc/gogs/app.ini.747273564.tmp: permission denied

Martchus commented on 2017-11-24 10:28

Checksums should be fixed now.

slashme commented on 2017-11-24 09:49

It appears the checksums in PKGBUILD haven't been updated for 0.11.34.

Martchus commented on 2017-11-05 18:15

@Case_Of The version has been updated (https://github.com/gogits/gogs/commit/4d1d66d906321e5bdcc6b22a8fe054bd95723f36) but not released. The latest release is still 0.11.29 (https://github.com/gogits/gogs/releases).

EDIT: I picked the security patches.