Skip to content
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

update package name and upgrade gin #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thinkerou
Copy link

No description provided.

"net/http"
"strconv"

"github.com/gin-gonic/gin"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why we need use the dev version? Version related issue I think govendor is better and enough, https://github.com/gothinkster/golang-gin-realworld-example-app/blob/master/vendor/vendor.json

Copy link
Author

Choose a reason for hiding this comment

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

Now gin no longer gopkg style, use govendor fetch github.com/gin-gonic/gin@v1.3 can get v1.3.x branch not develop version.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Got, I have half year not write go...

Copy link
Author

Choose a reason for hiding this comment

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

ohh, thanks a lot!

@@ -6,11 +6,10 @@ import (
"math/rand"
"time"

"github.com/dgrijalva/jwt-go"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure? Might cause error can'f find jwt? I think we should delete all package in the vendor or GOPATH, and make sure all packages can be installed in a new environment.

Copy link
Author

Choose a reason for hiding this comment

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

OK, I make sure it later on.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In fact, travis CI should do the work... but the gothinkster's repo didn't get right config... Let's wait Eric reply..

Copy link
Author

Choose a reason for hiding this comment

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

OK

"net/http"
"strings"

jwt "github.com/dgrijalva/jwt-go"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here. Codes LGTM, but please make sure it works fine in new environment.

Copy link
Author

Choose a reason for hiding this comment

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

OK, make sure later on.

@wangzitian0
Copy link
Collaborator

wangzitian0 commented Aug 30, 2018

Thank you very much! It's a very nice PR, I have left some comments. BTW, I don't know weather travis CI works fine, you could have a try on your own project firstly, that will reduce environment and version changing risk.
It will help us test different environment and auto running the tests.
https://github.com/gothinkster/golang-gin-realworld-example-app/blob/master/.travis.yml

@thinkerou
Copy link
Author

@wangzitian0 thanks review, I will retry the weekend.

Copy link
Collaborator

@wangzitian0 wangzitian0 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for the nice change!
Eric didn't answer..So, please run the script in .travis.yml before your merge on your own.
Make sure the tests/other check works..

go test -v ./...

@shrhawk-entertainer
Copy link

why this is not merged ?

@xdays
Copy link

xdays commented Jul 11, 2019

why not merged?

@y4code
Copy link

y4code commented Oct 10, 2019

@wangzitian0 who got the write access to this repo? please notify him/her to merge this PR, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants