Coder Social home page Coder Social logo

Comments (7)

adomokos avatar adomokos commented on May 17, 2024

I also pulled wangzitian0's repo and that worked.

from golang-gin-realworld-example-app.

wangzitian avatar wangzitian commented on May 17, 2024

@adomokos The two repo are totally same, caused by I'm lazy to write relative path. Govendor should auto download the packages to src/ from github.

from golang-gin-realworld-example-app.

adomokos avatar adomokos commented on May 17, 2024

I wonder what I did wrong with govendor, it never pulled in those dependencies.

Feel free to close this issue if you think it's not something you would be concerned about.

from golang-gin-realworld-example-app.

mike-jianxin-mo avatar mike-jianxin-mo commented on May 17, 2024

I got the same problem and solved it by replacing all the "wangzitian0/golang-gin-starter-kit" to "golang-gin-realworld-example-app" in the application.

PS.
I have created a symlink under the $GOPATH/src/github.com to point to the directory I cloned this repo.

golang-gin-realworld-example-app -> /<directories ... >/learning/golang-gin-realworld-example-app/

from golang-gin-realworld-example-app.

wangzitian0 avatar wangzitian0 commented on May 17, 2024

@mike-jianxin-mo The correct way might need to use relative path here. I did not know the project will fork to two place while I wrote this project, and used absolute path. Sorry for the mistake.

from golang-gin-realworld-example-app.

BrutalSimplicity avatar BrutalSimplicity commented on May 17, 2024

@wangzitian0 And how might one go about using a relative path? After a quick search, it appears that relative path imports aren't a thing in Go (https://stackoverflow.com/questions/38517593/relative-imports-in-go). All imports must start via the $GOROOT. Wouldn't it be better to rename the imports in this repository to the folder they would be cloned into by default "golang-gin-realworld-example-app"? That way this isn't an issue for people cloning the repository.

from golang-gin-realworld-example-app.

g33klord avatar g33klord commented on May 17, 2024

this need to be merged asap.

This should be followed everytime contributing to a go project: https://splice.com/blog/contributing-open-source-git-repositories-go/

from golang-gin-realworld-example-app.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.