Giter Club home page Giter Club logo

Comments (3)

robfig avatar robfig commented on August 14, 2024

Please give this a shot and let me know if it works for you.

Cheers,
Rob

from glock.

insasho avatar insasho commented on August 14, 2024

Sorry for being late to get to this, but I still care about this (I've just been lucky that deps haven't bitten me too badly yet..). The issue isn't so much that we want a GLOCKFILE in a particular location, but that we want a single set of dependencies for all of our company's subpackages in a git repository that happens to not be rooted in the package directory. Either $GOPATH/GLOCKFILE or $GOPATH/src/company.com/GLOCKFILE would make sense to us.

Our directory structure looks like this:

/          # this is the git root of our repo
/.git
/ops       # vagrant, ansible, jenkins, etc etc
/go        # this is $GOPATH
/go/.gitignore
/go/src/github.com/revel/...
/go/src/company.com/package1
/go/src/company.com/package2

I'd like to be able to run glock save company.com and have all of the dependencies from all of the dependencies of company.com/... tracked in a single GLOCKFILE. We have a .gitignore in /go/src/ to exclude from committing anything other than our company.com directory:

# Exclude 3rd party packages
src/*
# ... but include company.com
!src/company.com

Unfortunately glock seems to want all the packages under company.com to have their own repositories. Example:

$ bin/glock save company.com
no version control directory found for "company.com/common/mail/message"

It seems reasonable that if I'm asking "foo.com" to be tracked that "foo.com/project" wouldn't need to have its own version control directory.

Is this expected behavior, or am I missing something?

Thanks!

from glock.

boljen avatar boljen commented on August 14, 2024

I faced the same issue, the cause appears to be the domain name extension.

It doesn't work with:

src/company.com

It does work with:

src/company

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.