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

Support projects using stack #6

Open
axman6 opened this issue Jan 8, 2016 · 4 comments
Open

Support projects using stack #6

axman6 opened this issue Jan 8, 2016 · 4 comments

Comments

@axman6
Copy link

axman6 commented Jan 8, 2016

I'm hoping that the effort required to support stack isn't too large, and brings several benefits, particularly protection against license changes between versions of dependencies.

@jaspervdj
Copy link
Owner

I'm not really sure what you mean by supporting stack, since that also uses cabal files?

This tool currently doesn't look at license changes, that's an interesting idea though.

@ruuda
Copy link

ruuda commented Sep 7, 2016

Running in a directory containing a Stack project (which has been compiled):

$ stack install cabal-dependency-licenses
$ $(stack path --local-bin)/cabal-dependency-licenses
> cabal-dependency-licenses: Run the 'configure' command first.

Maybe all the required information is there, but the program is making some assumptions about where to find it, such as here? There exists a dist directory, but it is in .stack-work/dist, not in the project root. And even .stack-work can be changed with environment variables, so it should probably not be hard-coded.

@patrickt
Copy link

I've encountered this too. Even installing cabal-install and running stack exec cabal -- configure doesn't work, since stack uses GHC_PACKAGE_PATH, and cabal-install doesn't like that.

@ruuda
Copy link

ruuda commented May 30, 2017

Note that since Stack 1.3.0, there is stack list-dependencies --license.

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

No branches or pull requests

4 participants