Giter Site home page Giter Site logo

Comments (7)

robfig avatar robfig commented on August 23, 2024

Whoops, I think I was too eager to push it out. I've just pulled back the commit -- the fix for this particular problem is easy, but I also realized that "glock cmd" will not add all of the cmd dependencies.

Sorry for the false alarm. I'll finish it up, w/ a better job testing, over the weekend

from glock.

joeshaw avatar joeshaw commented on August 23, 2024

yep, I just noticed the tool dependency thing as well. Thanks for taking a look into it, it is otherwise working well for me.

from glock.

joliver avatar joliver commented on August 23, 2024

Plus 1 on glock save . vs glock save ./...

from glock.

robfig avatar robfig commented on August 23, 2024

OK, I just pushed another attempt at "glock cmd" functionality. It seems to work well. Please let me know if you find anything amiss!

Thanks for your help btw

from glock.

joeshaw avatar joeshaw commented on August 23, 2024

@robfig Working great, thanks a lot. Now, to switch all my projects over to it 😄

from glock.

dmitshur avatar dmitshur commented on August 23, 2024

Now, to switch all my projects over to it

Is there an existing way to automatically import similar files (e.g., Godeps) and convert to glock's format?

from glock.

robfig avatar robfig commented on August 23, 2024

Nothing official; probably I should add a section in the README for that. I think it should be easy:

  1. Get your workspace into a state you want to save (e.g. using godeps restore, or whatever)
  2. "glock save path/to/project"

If you're using godeps copy=false it should just work. If you use godeps with vendoring, then you may have to set the GOPATH so that glock can find the dependencies, eg.

GOPATH=$GOPATH:pwd/_vendor glock save path/to/project

However, I have not tested glock with multiple GOPATHs. If that doesn't work, then I would be willing to fix it. A workaround would be to copy your project into your vendor GOPATH and then use

GOPATH=pwd/_vendor glock save path/to/project

and take the resulting GLOCKFILE

from glock.

Related Issues (20)

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.