jaspervdj / cabal-dependency-licenses Goto Github PK
View Code? Open in Web Editor NEWCompose a list of a project's transitive dependencies with their licenses
License: Other
Compose a list of a project's transitive dependencies with their licenses
License: Other
The program does not work under GHC 8.2.1:
roland@goms:~/Downloads/unix-2.7.2.2/unix-2.7.2-test$ cabal configure
Resolving dependencies...
Configuring unix-2.7.2.2...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
... lines deleted
config.status: creating include/HsUnixConfig.h
config.status: include/HsUnixConfig.h is unchanged
configure: WARNING: unrecognized options: --with-compiler
roland@goms:~/Downloads/unix-2.7.2.2/unix-2.7.2-test$ cabal-dependency-licenses
cabal-dependency-licenses: Saved package config file is outdated:
• the Cabal version changed from Cabal-2.0.0.2 to Cabal-1.24.2.0
Re-run the 'configure' command.
roland@goms:~/Downloads/unix-2.7.2.2/unix-2.7.2-test$ cabal --version
cabal-install version 2.0.0.0
compiled using version 2.0.0.2 of the Cabal library
roland@goms:~/Downloads/unix-2.7.2.2/unix-2.7.2-test$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.1
roland@goms:~/Downloads/unix-2.7.2.2/unix-2.7.2-test$
Reason:
GHC 8.2.1 uses cabal version 2.0 however the program cabal-dependencies-licenses builds with cabal versions between 1.18 and 1.24
Build-depends:
Cabal >= 1.18 && < 1.25,
It would be nice to be able to build c-d-l with current Cabal HEAD. Right now, even if I pass --allow-newer
, there's a compile error.
On the other hand, if I build it with Cabal 1.20, then it doesn't recognize the new config format:
cabal-dependency-licenses: user error (Saved package config file seems to be corrupt. Try re-running the 'configure' command.)
(Another workaround for me would be to build cabal-install-1.20 just for this purpose.)
Would you consider adding cabal-dependency-licenses to stackage?
This tool might be superseded by cabal-plan, see https://hackage.haskell.org/package/cabal-plan#description, which can produce a license-report
.
If so, this information could maybe added to the README.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.