Package Details: gogs 1:0.13.0-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
Submitter: kureikain
Maintainer: krumelmonster
Last Packager: dcelasun
Votes: 51
Popularity: 0.000000
First Submitted: 2014-05-12 08:56 (UTC)
Last Updated: 2023-08-10 14:22 (UTC)

Dependencies (9)

Required by (0)

Sources (3)

Pinned Comments

Martchus commented on 2020-08-24 14:06 (UTC)

The release 0.12.0 will change various configuration variables, e.g. ROOT_URL is changed to EXTERNAL_URL. Please read the official changelog before reporting any issues: https://github.com/gogs/gogs/releases/tag/v0.12.0

Further notes from myself:

  • ROOT_URL did not work at all for me anymore. So it is apparently not just deprecated (as the changelog states).
  • The changelog mentions no alternative to STATIC_ROOT_PATH. It looks like this directory is simply not required at all anymore because files are built into the executable. Overrides should be possible by placing files into the working directory (should be /var/lib/gogs/public with the default config provided by this package; haven't tested yet).

Martchus commented on 2017-06-12 22:24 (UTC) (edited on 2020-08-24 14:22 (UTC) by Martchus)

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.~~~ The official package now uses the user gitea similar to my initial packaging was done.
  • 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.)

Latest Comments

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

arshlinux commented on 2018-07-13 14:20 (UTC)

Just reporting this warning:

==> WARNING: Package contains reference to $srcdir
usr/bin/gogs

runical commented on 2018-04-01 19:15 (UTC)

@Martchus: Thanks for the explanation, I guess that is annoying to deal with. The reason I add this is in an attempt to educate the people using the AUR about these kinds of things (which should absolutely be known by those users).

You won't hear me complain about your including the deps btw. Just about the people who asked you to include those deps ;-)

Martchus commented on 2018-03-31 11:12 (UTC) (edited on 2018-03-31 11:14 (UTC) by Martchus)

@runical I know that those dependencies are actually not required. See my comment on his PR. However, that's not the first complaint of that kind I'm receiving so I just thought let's finally add it. It can not hurt and might silence those complaints. If I now get more complaints about those makedepends being present, I maybe drop them again :-)

runical commented on 2018-03-31 10:54 (UTC) (edited on 2018-03-31 10:54 (UTC) by runical)

@Martchus, @k3a

It seems the comment has already been removed, so I hope k3a has found out that they were incorrect themselves. However, it seems Martchus has acted on it nevertheless.

GCC and patch do not have to be listed as makedepends as they are in the base-devel group. This group in assumed installed for anyone who builds packages, as can be seen on the wiki [0,1]. This does not mean that adding them is wrong per se, but they do not have to be added explicitly for any package on the AUR. Please refrain from asking anyone to add these as makedepends and just install base-devel.

[0] https://wiki.archlinux.org/index.php/Arch_User_Repository#Prerequisites

[1] https://wiki.archlinux.org/index.php/Makepkg

Martchus commented on 2018-03-20 20:47 (UTC)

Ok, I'll do when updating anyways.

powerarch commented on 2018-03-20 20:37 (UTC)

This package sees to build just fine on aarch64. Maybe add it to the supported architectures?

Martchus commented on 2018-03-19 22:05 (UTC) (edited on 2018-03-19 22:14 (UTC) by Martchus)

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 (UTC) (edited on 2018-02-07 20:59 (UTC) by Martchus)

@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 (UTC) (edited on 2018-02-04 11:27 (UTC) by drBlaze)

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?