Skip to content

Rename gogs.go to main.go with all references #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 4, 2016
Merged

Rename gogs.go to main.go with all references #33

merged 4 commits into from
Nov 4, 2016

Conversation

metalmatze
Copy link
Contributor

Just to stick to the Go rule of thumb for the main.go.

@xinity
Copy link
Contributor

xinity commented Nov 3, 2016

LGTM

outPath=./output

rm -rf $outPath
mkdir $outPath

go build ../gogs.go
go build ../main.go
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this have -o gitea.go?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK it should take the directory name, but you can prove that I'm wrong :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though the file is named main.go this is still incorrect, since @tboerger is correct 🙂

outPath=./output

rm -rf $outPath
mkdir $outPath

go build ../gogs.go
go build ../main.go
PLATFORM=`uname | cut -d _ -f 1`
if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then
GOGS_EXE=gogs.exe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should review what this does, too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs to be fixed.

outPlattform=freebsd
outArch=amd64
outPath=./output_$outPlattform_$outArch

rm -rf $outPath
mkdir $outPath

CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go
CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main.go
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

outPlattform=linux
outArch=amd64
outPath=./output_$outPlattform_$outArch

rm -rf $outPath
mkdir $outPath

CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go
CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main.go
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@metalmatze
Copy link
Contributor Author

I just updated the scripts/ because it had a reference there.
We really should get rid of the scripts/ and try to do this with a good Makefile.

Copy link
Member

@tboerger tboerger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace the remaining gogs references within the scripts folder.

@xinity xinity added the type/enhancement An improvement of existing functionality label Nov 3, 2016
@xinity xinity added this to the 1.0.0 milestone Nov 3, 2016
@tboerger
Copy link
Member

tboerger commented Nov 3, 2016

Beside the pending gogs references in scripts it needs a rebase.

@bkcsoft
Copy link
Member

bkcsoft commented Nov 4, 2016

Makefile is also outdated 🙂

Signed-off-by: Matthias Loibl <[email protected]>
@metalmatze
Copy link
Contributor Author

Updated my branch with a force push. Rebased against current master and improved all the things said above! 👍

@codecov-io
Copy link

codecov-io commented Nov 4, 2016

Current coverage is 2.18% (diff: 100%)

Merging #33 into master will not change coverage

@@            master       #33   diff @@
========================================
  Files           31        31          
  Lines         7508      7508          
  Methods          0         0          
  Messages         0         0          
  Branches         0         0          
========================================
  Hits           164       164          
  Misses        7327      7327          
  Partials        17        17          

Powered by Codecov. Last update a46efe2...cda6baf

@strk
Copy link
Member

strk commented Nov 4, 2016

More references missing, "make" ends with: cp '/home/strk/.go/bin/gogs'
Check the Makefile please

@metalmatze
Copy link
Contributor Author

You're right. But I don't want to touch anything in scripts/ or the Makefile. @tboerger is already working on replacing the existing Makefile completely. @tboerger could just merge this and then add his new Makefile. Don't want to waste energy there. :)

@tboerger
Copy link
Member

tboerger commented Nov 4, 2016

Yes, don't touch the makefile, merge this pr :)

@tboerger
Copy link
Member

tboerger commented Nov 4, 2016

LGTM will integrate the makefile and build scripts stuff into my PR.

@strk
Copy link
Member

strk commented Nov 4, 2016

LGTM

1 similar comment
@tboerger
Copy link
Member

tboerger commented Nov 4, 2016

LGTM

@tboerger tboerger merged commit ba4d255 into go-gitea:master Nov 4, 2016
@metalmatze metalmatze deleted the feature/main.go branch November 4, 2016 23:57
@tboerger tboerger added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Nov 29, 2016
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants