Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: gogs 1:0.9.113-1

Git Clone URL: https://aur-dev.archlinux.org/gogs.git (read-only)
Package Base: gogs
Description: Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language.
Upstream URL: http://gogs.io/
Keywords: git go gogs
Licenses: MIT
Conflicts: gogs-bin, gogs-git, gogs-git-dev
Provides: gogs
Submitter: kureikain
Maintainer: fanningert (wicast)
Last Packager: fanningert
Votes: 37
Popularity: 2.149273
First Submitted: 2014-05-12 08:56
Last Updated: 2016-12-28 07:41

Dependencies (11)

Required by (1)

Sources (3)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

Tintifax commented on 2016-12-20 11:56

Looks still broken. Full output here: http://pastebin.com/jfVdChjj

nougad commented on 2016-12-01 23:59

I get the same error.

Scrolling up I see the msg:

# github.com/gogits/gogs/vendor/golang.org/x/net/html/charset
vendor/golang.org/x/net/html/charset/charset.go:42: undefined: encoding.Encoder
vendor/golang.org/x/net/html/charset/charset.go:45: undefined: encoding.HTMLEscapeUnsupported

which is basically fixed by running glide cc before (see https://github.com/gogits/gogs/issues/3707)

When I run glide cc before I run into the following problem (see full error below):

It looks like it's related to https://github.com/gogits/gogs/issues/3683

The v0.9.97 was released this on Sep 1 - The bug fixed Sep 23. Looks like only a new release would fix the problem.

I applied the patch locally ( https://github.com/gogits/gogs/commit/2bec8a4f1ef6b48220a0010c1482e561abd55810 ) and was able to build the package.

$ cat models.go.patch
InsertOne(interface{}) (int64, error)
Iterate(interface{}, xorm.IterFunc) error
Sql(string, ...interface{}) *xorm.Session
- Where(string, ...interface{}) *xorm.Session
+ Where(interface{}, ...interface{}) *xorm.Session
}


modifications to PKGBUILD:

source=('gogs.service.patch'
'app.ini.patch'
+ 'models.go.patch'
"$_pkgname-$pkgver::https://${_gourl}/archive/v${pkgver}.tar.gz")

sha512sums=(834e95fe9bcfa291a573ad1fa43f41bbed844658a918ff4fcf53ab8a44a296206ee4003eab1d9a2785c9126be077022f4907846d2eb6c5d64050b5e81ce47f44
800bba8c0d01bacb43846572f5ade2d1a04b0093f70c991b3cc80bd39b14eb02bb3534890666ff1bbbd9a23e97453f2f136648f7f23d5f829239ab7b4258f6ca
+ 35eb343ce1158fbb45d0007d107e5dc88d58b83e4cf4b72273969055620cce19f6374bfef4212b066dd45d75083ef0f199effbcc832c0ee4ad27501ea8fbe226
4ea51d7dc3f70a352765c9e736ebbf290b652253309f44ab08c6c95a96b033356db954d0da22cea754c346537af2c24f3239fcbb7c1babf9161f710d75b4e9e5)

patch -Np1 -i "$srcdir/gogs.service.patch" "$GOPATH/src/${_gourl}/scripts/systemd/gogs.service"
+ patch -Np1 -i "$srcdir/models.go.patch" "$GOPATH/src/${_gourl}/models/models.go"
}


Full excerpt:

# github.com/gogits/gogs/models
models/access.go:84: cannot use x (type *xorm.Engine) as type Engine in argument to accessLevel:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/access.go:94: cannot use x (type *xorm.Engine) as type Engine in argument to hasAccess:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/access.go:245: cannot use x (type *xorm.Engine) as type Engine in argument to r.recalculateAccesses:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/action.go:194: cannot use x (type *xorm.Engine) as type Engine in argument to newRepoAction:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/action.go:217: cannot use x (type *xorm.Engine) as type Engine in argument to renameRepoAction:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/action.go:568: cannot use x (type *xorm.Engine) as type Engine in argument to transferRepoAction:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/action.go:586: cannot use x (type *xorm.Engine) as type Engine in argument to mergePullRequestAction:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/issue.go:154: cannot use x (type *xorm.Engine) as type Engine in argument to issue.loadAttributes:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/issue.go:231: cannot use x (type *xorm.Engine) as type Engine in argument to i.hasLabel:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/issue.go:312: cannot use e (type *xorm.Session) as type Engine in argument to issue.getLabels:
*xorm.Session does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/issue.go:312: too many errors
mkdir -p $WORK/github.com/gogits/gogs/vendor/github.com/Unknwon/paginater/_obj/
cd /srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/Unknwon/paginater
/srv/aur/gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/github.com/Unknwon/paginater.a -trimpath $WORK -p github.com/gogits/gogs/vendor/github.com/Unknwon/paginater -complete -buildid 051849d0b68d9a837faccd348575b93c8a4ad1a0 -D _/srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/Unknwon/paginater -I $WORK -pack ./paginater.go
mkdir -p $WORK/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1/_obj/
mkdir -p $WORK/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/
cd /srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1
/srv/aur/gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1.a -trimpath $WORK -p github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1 -complete -buildid 8d1bc43b4d401f0d350447b5c3aae7c460a80050 -importmap gopkg.in/ini.v1=github.com/gogits/gogs/vendor/gopkg.in/ini.v1 -D _/srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1 -I $WORK -I /srv/aur/gogs/src/build/pkg/linux_amd64 -pack ./editorconfig.go
mkdir -p $WORK/github.com/gogits/gogs/vendor/github.com/gogits/cron/_obj/
cd /srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/gogits/cron
/srv/aur/gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/github.com/gogits/cron.a -trimpath $WORK -p github.com/gogits/gogs/vendor/github.com/gogits/cron -complete -buildid 09995a2f36c16b19b8adf89712bed5fc7a4caaa9 -D _/srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/gogits/cron -I $WORK -pack ./constantdelay.go ./cron.go ./doc.go ./parser.go ./spec.go
mkdir -p $WORK/github.com/gogits/gogs/vendor/github.com/urfave/cli/_obj/
mkdir -p $WORK/github.com/gogits/gogs/vendor/github.com/urfave/
cd /srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/urfave/cli
/srv/aur/gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/github.com/urfave/cli.a -trimpath $WORK -p github.com/gogits/gogs/vendor/github.com/urfave/cli -complete -buildid 4518143d9ac4151794dcdd0e4aab9cd4408a7740 -D _/srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/urfave/cli -I $WORK -pack ./app.go ./category.go ./cli.go ./command.go ./context.go ./errors.go ./flag.go ./flag_generated.go ./funcs.go ./help.go
==> ERROR: A failure occurred in build().
Aborting...

cinaed666 commented on 2016-11-26 15:41

nicoulaj: I have the same issue at the moment. Exact same error.

nicoulaj commented on 2016-11-25 23:12

Does the package build for you ? It fails for me, with no meaningful error message:

/home/nicoulaj/tmp/yaourt-tmp-nicoulaj/aur-gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/github.com/urfave/cli.a -trimpath $WORK -p github.com/gogits/gogs/vendor/github.com/urfave/cli -complete -buildid 4518143d9ac4151794dcdd0e4aab9cd4408a7740 -D _/home/nicoulaj/tmp/yaourt-tmp-nicoulaj/aur-gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/urfave/cli -I $WORK -pack ./app.go ./category.go ./cli.go ./command.go ./context.go ./errors.go ./flag.go ./flag_generated.go ./funcs.go ./help.go
==> ERROR: A failure occurred in build().
Aborting...

fanningert commented on 2016-09-27 14:33

I update the PKGBUILD file and add following points.
* Add 'glide update' before 'glide install'

But it looks like the is an problem in the source with the current release. So I openend a Git-Issue.
https://github.com/gogits/gogs/issues/3707 <- was a caching problem on my machine
but after that I get a new error
https://github.com/gogits/gogs/issues/3712 <- corrected with the next release of gogs, gogs-git is working

mikroskeem commented on 2016-09-27 08:25

Adding "glide update" before "glide install" fixes checkout error, but then I get this error: https://paste.nightsnack.cf/ifexamurek.pas

fbis251 commented on 2016-09-22 16:25

@FoPref

Unfortunately the download script doesn't keep the version of the source package in the downloaded file and instead renames them all "gogs".

Just delete the "gogs" file from the package folder and try to rebuild the package and it should work fine.

@fanningert would you mind keeping the version number in the packages to prevent this from happening?

FoPref commented on 2016-09-22 15:56

Does not install:

-> Downloading gogs...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 120 0 120 0 0 250 0 --:--:-- --:--:-- --:--:-- 250
100 8511k 100 8511k 0 0 3952k 0 0:00:02 0:00:02 --:--:-- 9300k
==> Validating source files with sha512sums...
gogs.service.patch ... Passed
app.ini.patch ... Passed
gogs ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!

miopa commented on 2016-09-16 15:16

I had do add

glide update
before
glide install
in prepare()

in order to build it

majewsky commented on 2016-08-12 11:39

I tried to update from 0.9.0 to 0.9.71, but the epoch decreased (!) from 2 to 1, thus breaking my AUR helpers. Can you please increase the epoch again?