These are chat archives for go-gitea/gitea

3rd
Sep 2015
Maximilian Mader
@max-m
Sep 03 2015 04:26
Hi, what is the current way of building gitea? :)
Currently I'm struggling with it, first I tried to build via your Dockerfile but "go get" always errored at "github.com/go-gitea/gitea/routers/api/v1";, afterwards I tried it the way like Travis is building the "develop" branch but I must have missed something :/
Lunny Xiao
@lunny
Sep 03 2015 04:36
Hi, @max-m , just go get -u and go build.
Maximilian Mader
@max-m
Sep 03 2015 04:59
I'll try :)
Also I just noticed that I had a typo in my "gitea path", it pointed to GOPATH/src/ instead of $GOPATH/src/ :blush:
Maximilian Mader
@max-m
Sep 03 2015 05:08

Yay, it worked (when on the master branch) :D
Must have been that typo ^^

One last thing: How would I go about building the develop branch?
go get -u seems to look for the master branch:

Step 13 : RUN cd "$GITEA_PATH" &&       go get -u &&    go build &&     useradd -d $HOME -m $USER &&    chown -R $USER .
 ---> Running in 9441b5c0440d
# cd /go/src/github.com/go-gitea/gitea; git checkout master
error: pathspec 'master' did not match any file(s) known to git.
package github.com/go-gitea/gitea: exit status 1
Vasiliy Tolstov
@vtolstov
Sep 03 2015 08:44
hi, i want to try implement mirror to external repo from gitea
where i can start?, as i see each repo already have mirror struct (if repo is mirror)
does i need to create direction veriable in Mirror struct Or i need to create another hook type (for example githook) and add it to repo?
无闻
@Unknwon
Sep 03 2015 09:11
A quick note that please remove my e-mail address on https://github.com/go-gitea/gitea/blob/master/.travis.yml :flushed:
Thomas Boerger
@tboerger
Sep 03 2015 09:12
@Unknwon got already a pull request for develop which replaces many parts. i think i will create another one for master.
无闻
@Unknwon
Sep 03 2015 09:12
@tboerger yeah... got a lot build failure these days.. :joy:
Thomas Boerger
@tboerger
Sep 03 2015 09:13
hopefully this will be history in general soon :)
@Unknwon go-gitea/gitea#215 :)
无闻
@Unknwon
Sep 03 2015 09:16
:)
Thomas Boerger
@tboerger
Sep 03 2015 09:19
@Unknwon why does gopm not fetch golang.org/x/net or golang.org/x/text?
[GOPM] 15-09-02 13:11:59 [ WARN] Getting imports: no buildable Go source files in /tmp/671486334/src/golang.org/x/net
-.-
无闻
@Unknwon
Sep 03 2015 09:24
It is true there is no Go code in that directory
Thomas Boerger
@tboerger
Sep 03 2015 09:30
ah, found the problem... gopm have not found the dependency on golang.org/x/crypto... got to add that as well -.-
Thomas Boerger
@tboerger
Sep 03 2015 10:12
damn... i have added golang.org/x/crypto/ssh to .gopm but it seems to be not loading this package oO
Thomas Boerger
@tboerger
Sep 03 2015 10:31
@Unknwon gopm looks buggy to me... got golang.org/x/crypto/ssh = commit:d5c5f1769fwithin .gopm, but it just gets ignored
tried also another or none commit, doesnt work
even gopm get -v -l doesn't download it oO
Thomas Boerger
@tboerger
Sep 03 2015 10:41
@lunny slowly i'm getting pissed of about gopm -.-
无闻
@Unknwon
Sep 03 2015 10:53

gopm looks buggy

Yes it is, I can confirm

Thomas Boerger
@tboerger
Sep 03 2015 10:56
@Unknwon so there seem to be only a single alternative, godep... as the new vendoring doesn't work thankfully for macaron-contrib :(
@Unknwon or can you disable fast the usage of internal packages? =)
macaron-contrib/oauth2/google/google.go uses github.com/golang/oauth2/internal, and this seems to be not allowed and this bails out on the new 1.5 vendoring.
Thomas Boerger
@tboerger
Sep 03 2015 11:06
@Unknwon using an internal package just because of https://github.com/golang/oauth2/blob/master/internal/oauth2.go#L24?
无闻
@Unknwon
Sep 03 2015 11:08
OK , let me see
OK...
just removed google subdir
since it's not been used anywhere I know..
Thomas Boerger
@tboerger
Sep 03 2015 11:11
oh, ok :)
Steven Roose
@stevenroose
Sep 03 2015 13:53
what is the purpose of this fork? what is the reason that the code for PR and Wiki is not just merged into Gogs?
Thomas Boerger
@tboerger
Sep 03 2015 14:06
@stevenroose this have been discussed multiple times :) @Unknwon was not available for some months, this fork have been created, @Unknwon wants to stay the only maintainer of gogs, so these 2 projects will stay 2 separate projects :)
Steven Roose
@stevenroose
Sep 03 2015 14:13
he still wants to stay the sole maintainer?
you guys were open to a merger?
that's quite asocial
Thomas Boerger
@tboerger
Sep 03 2015 14:14
yes, he wants to keep the power in his hands because there had been a single broken build because of a merge by @lunny in the past
Steven Roose
@stevenroose
Sep 03 2015 14:14
@tboerger when did all this happen? and how do the two projects compare right now?
does gitea lag features that gogs has?
considerign the number of commits and contributors, gitea has less "code"
/controbutions
Thomas Boerger
@tboerger
Sep 03 2015 14:15
just a few months ago... gitea got pull requests and wikis within the develop branch, gogs slowly get the pull requests done as well but lacks wikis
Steven Roose
@stevenroose
Sep 03 2015 14:17
and how comes gitea got so much less contributors and commits, that suggests that you forked quite far upstream
Thomas Boerger
@tboerger
Sep 03 2015 14:17
currently we are in some kind of a summer hole :)
Steven Roose
@stevenroose
Sep 03 2015 14:17
yeah a lot of projects are
Thomas Boerger
@tboerger
Sep 03 2015 14:17
less contributors? idk... the people seems to be happy enough that unknwon returned
Steven Roose
@stevenroose
Sep 03 2015 14:17
gogs is such a nice project, I find it sad to see it being managed so asocially
Thomas Boerger
@tboerger
Sep 03 2015 14:18
i started to play with gogs before i have been asked if i want to work on gitea to get things merged and done :)
Steven Roose
@stevenroose
Sep 03 2015 14:18
I'm speaking raw numbers, they probably are misleading, but gogs got 155 and gitea 126
Thomas Boerger
@tboerger
Sep 03 2015 14:19
unknwon have been DAMN active since he returned
Steven Roose
@stevenroose
Sep 03 2015 14:20
so gitea is lagging behind on gogs as well?
this sucks :S
I know it probably wont matter, but I'm gonna reach out to unknwon
Thomas Boerger
@tboerger
Sep 03 2015 14:21
currently we still have pull requests and wikis. hopefully some automated builds pretty soon as well.
the plan have been to release 0.7.0 in august but we have a delay
unknwon is on this chat as well, so probably he already read what you write :)
Maximilian Mader
@max-m
Sep 03 2015 14:36
@tboerger could you tell me how to build the develop branch? Never used the “go way” of building things, haha.
I was able to build the master via the tips from @lunny but when checked into the develop branch it tried to build from master :)
Lunny Xiao
@lunny
Sep 03 2015 14:38
go get -u github.com/go-gitea/gitea
cd $GOPATH/src/github.com/go-gitea/gitea
git checkout develop
go build
Thomas Boerger
@tboerger
Sep 03 2015 14:39
@lunny noooooo... not anymore :D
git clone -b develop https://github.com/go-gitea/gitea.git ${GOPATH}/src/github.com/go-gitea/gitea
cd ${GOPATH}/src/github.com/go-gitea/gitea
go run make.go deps build
that's it :)
Lunny Xiao
@lunny
Sep 03 2015 14:42
OKay. I forgot we have merged your PR. @tboerger
We can put it on the README or other documents.
Thomas Boerger
@tboerger
Sep 03 2015 14:43
maybe directly in the readme of the repo itself, yeah
Lunny Xiao
@lunny
Sep 03 2015 14:43
That’s a good idea.
Thomas Boerger
@tboerger
Sep 03 2015 15:46
@lunny can you prepare the logo for different sizes?
i'm working on an pull request for the website and the docs
i will be back in a few hours
prepare the logo for the website and gitea itself :)
Thomas Boerger
@tboerger
Sep 03 2015 15:51
and you can do the translations to chinese afterwards :)
what happened to @makhov ?
Steven Roose
@stevenroose
Sep 03 2015 15:58
@tboerger what is the tea repo in go-gitea?
is that what "with a cup of tea" referes to?
it's a fork of "hub"
Thomas Boerger
@tboerger
Sep 03 2015 16:01
this is planned as an alias for the git client like github hub but for gitea
but we have currently not started to work on it as there are other things with higher priority
Maximilian Mader
@max-m
Sep 03 2015 17:07
@tboerger Thanks :)
My gitea Dockerfile reached a length of 60 Lines (including blank lines). :D
Thomas Boerger
@tboerger
Sep 03 2015 17:20
really? mine is smaller :D
https://github.com/dockhippie/drone/blob/master/Dockerfile this is comparable with my dockerfile for gitea... need to publish it
Maximilian Mader
@max-m
Sep 03 2015 17:25
I’m adding s6 as supervisor (gogs created zombies back than) which makes up about 15 lines.
About five lines of environment variables (GIT_URL, GIT_BRANCH, GIT_COMMIT_HASH, GITEA_PATH, USER, HOME).
Five lines of APT related stuff. This quickly sums up to ~60 lines :D
Thomas Boerger
@tboerger
Sep 03 2015 18:01
env variable for user? oO
and home?
i love alpine linux containers... they are so damn small :)
Maximilian Mader
@max-m
Sep 03 2015 18:34
It was a merger between my old Dockerfile and this (probably old) one https://github.com/go-gitea/gitea/blob/master/Dockerfile