sol / tinc

A dependency manager for Haskell
MIT License
97 stars 15 forks source link

add-source #31

Closed fisx closed 9 years ago

fisx commented 9 years ago

When i add-source things manually before running tinc, tinc ignores the setup (obviously, as it move existing sandboxes out of the say). Is there another way to add sources?

(This is really great otherwise. Feels quite stable and mature, too.)

sol commented 9 years ago

Yes, we want this too.

Right now you can add a list of additional dependencies to tincy.yaml. In addition you can override existing dependencies with a specific Git revision e.g.:

#tincy.yaml 
dependencies:
 - name: some-sep
 - github: sol/some-dep
 - ref: some-commit-hash

(Note that this feature currently only works properly if you use Tinc in combination with a hpack package.yaml)

I'm inclined to extend this to allow local dependencies too.

fisx commented 9 years ago

That's helpful, thanks! (-:

Could it be that #33 is closing this? I don't see how it does, but I might be missing something..

sol commented 9 years ago

@fisx With the latest master you don't need a package.yaml anymore.

And yes, #33 addresses this, closing.

sol commented 9 years ago

Example usage:

#tincy.yaml 
dependencies:
 - name: some-dep
   path: ../some-dep