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.000027
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 8 9 10 ... Next › Last »

xsmile commented on 2017-05-15 10:07

@Martchus: That is fore sure :-) The change is in line 62. Using these ldflags strips debugging information from the binary.

Martchus commented on 2017-05-15 09:46

@xsmile How did you achieve the smaller binary size (not sure which modification of your PKGBUILD is relevant)? I think it is better not change the paths here again because these changes are likely very annoying for the users.

xsmile commented on 2017-05-13 14:36

I have been playing around with different gogs configurations recently and would like to share my package that includes some (in my opinion) useful changes I gathered from the other packages or found out myself:
- working directory is set using an environment variable
- symlinks instead of static paths in app.ini
- thus no default app.ini, gogs generates it during the setup routine
- binary should be ~10MB smaller
https://www.sendspace.com/file/zxe93v

CountMurphy commented on 2017-05-08 18:13

ah. Thanks. Looks like I'm having other issues on my end. Gogs seems to be incapable of writing to its own home folder (rewrite ssh austhorized keys does nothing). I suspect something is wrong with my install/db/config, vs something with the package itself. I have my database and repos backed up and will attempt a full reinstall of gogs tonight.

Sorry I was a bit snappy in my unedited comment below

edacval commented on 2017-05-08 17:38

@CountMurphy:
Remove symlink, go to gogs "Admin panel" and press "Rewrite '.ssh/authorized_keys' file (caution: non-Gogs keys will be lost)" and "Resync pre-receive, update and post-receive hooks of all repositories" . This is long-standing bug/feature, gogs store part of configuration paths in database. You must repeat this after each path change.

boosterdev commented on 2017-05-08 17:36

my personal version puts everything in /home/git using the git user from git package, less then few tweaks to get ssh running with git@localhost

http://boosterdev.ddns.net/git/boosterdev/gogs

CountMurphy commented on 2017-05-08 16:18

Solved that issue thanks to your comment below " binary is now under /usr/bin
* and only static files under /usr/share/gogs"

This needs to be added back else it completely breaks git over ssh.
ln -s /usr/bin/gogs /usr/share/gogs/gogs fixed the issue.

CountMurphy commented on 2017-05-08 15:52

Something went really, really wrong with this update. All my configs were ignored. Was able to manually move them to /etc and now Gogs mostly works. The only real issue is I cannot interact with gogs over ssh anymore. trying to fetch (or clone) Gives me:

bash: /usr/share/gogs/gogs: No such file or directory
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

Browsing /usr/share/gogs confirms that there is no file called gogs. Did this file not get included?

Even deleting my ssh key, and re-adding it over the web interface does not fix this problem

Martchus commented on 2017-05-08 09:10

Gogs fits in the regular file system tree. No reason to put everything under /opt.

Martchus commented on 2017-05-06 13:53

Removal of those make dependencies is one of the things I changed in my own version which still builds fine: https://github.com/Martchus/PKGBUILDs/blob/master/gogs/default

Not sure whether building with go-bindata-git and nodejs-less enables any optional features, though.