-
Notifications
You must be signed in to change notification settings - Fork 691
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
Add an explicit way of specifying dependencies on the command line #1470
Commits on Oct 25, 2013
-
Add an explicit way of specifying dependencies on the command line
e.g., --dependency="MyOtherLib=MyOtherLib-1.0-073259a42bbf95f818c899c57ba5bf30" If the package names do not match --dependency="foo=MyOtherLib-1.0-073259a42bbf95f818c899c57ba5bf30" then this gives an error Setup.hs: The following names do match their hash name: (foo, MyOtherLib) If the hash is incorrect e.g. --dependency="foo=MyOtherLib-1.0-073259a42bbf95f818c899c57ba5bf31" then this gives an error Setup.hs: The following dependencies do not exist: MyOtherLib-1.0-073259a42bbf95f818c899c57ba5bf31
Configuration menu - View commit details
-
Copy full SHA for 1a37a47 - Browse repository at this point
Copy the full SHA 1a37a47View commit details -
Capture installed package information.
The goal is to learn the installed package id of the package we just installed, as necessary for haskell#1860. We achieve this by inserting an additional call to "setup register" that produces the installed package information in a file. We read and parse that file and could now return the installed package id, but it is not clear what interface would be appropriate.
Configuration menu - View commit details
-
Copy full SHA for 46f8885 - Browse repository at this point
Copy the full SHA 46f8885View commit details -
Create hashes from the solver install plan and pass these to cabal so
that the exact packages are installed rather than letting cabal choose for itself (potentially choosing the package with the incorrect hash). Closes: haskell#1460.
Configuration menu - View commit details
-
Copy full SHA for 6b6912c - Browse repository at this point
Copy the full SHA 6b6912cView commit details -
Refactor the patch to add an explicit way of specifying dependencies
on the command line so that the logic is in a separate function.
Configuration menu - View commit details
-
Copy full SHA for 9f4ee3a - Browse repository at this point
Copy the full SHA 9f4ee3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 522cd36 - Browse repository at this point
Copy the full SHA 522cd36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1401b52 - Browse repository at this point
Copy the full SHA 1401b52View commit details -
Add an explicit way of specifying dependencies on the command line
e.g., --dependency="MyOtherLib=MyOtherLib-1.0-073259a42bbf95f818c899c57ba5bf30" If the package names do not match --dependency="foo=MyOtherLib-1.0-073259a42bbf95f818c899c57ba5bf30" then this gives an error Setup.hs: The following names do match their hash name: (foo, MyOtherLib) If the hash is incorrect e.g. --dependency="foo=MyOtherLib-1.0-073259a42bbf95f818c899c57ba5bf31" then this gives an error Setup.hs: The following dependencies do not exist: MyOtherLib-1.0-073259a42bbf95f818c899c57ba5bf31
1Configuration menu - View commit details
-
Copy full SHA for caba878 - Browse repository at this point
Copy the full SHA caba878View commit details -
Rearange and simplify the --dependency configure code a bit
Use a map from package name rather than from constraint, for the info on the specific packages to use.
3Configuration menu - View commit details
-
Copy full SHA for 6002f62 - Browse repository at this point
Copy the full SHA 6002f62View commit details -
Capture installed package information.
The goal is to learn the installed package id of the package we just installed, as necessary for haskell#1860. We achieve this by inserting an additional call to "setup register" that produces the installed package information in a file. We read and parse that file and could now return the installed package id, but it is not clear what interface would be appropriate.
3Configuration menu - View commit details
-
Copy full SHA for 2b10869 - Browse repository at this point
Copy the full SHA 2b10869View commit details -
Create hashes from the solver install plan and pass these to cabal so
that the exact packages are installed rather than letting cabal choose for itself (potentially choosing the package with the incorrect hash). Closes: haskell#1460.
2Configuration menu - View commit details
-
Copy full SHA for 5e46978 - Browse repository at this point
Copy the full SHA 5e46978View commit details -
4
Configuration menu - View commit details
-
Copy full SHA for 44a2ced - Browse repository at this point
Copy the full SHA 44a2cedView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 9af2f51 - Browse repository at this point
Copy the full SHA 9af2f51View commit details -
And don't use the old flag with new cabals
We generate both --constraint and --dependency flags, but we only need to pass one or the other, depending on the Cabal version.
1Configuration menu - View commit details
-
Copy full SHA for 7e88be5 - Browse repository at this point
Copy the full SHA 7e88be5View commit details -
Since we now have a new version-dependent feature: the new --dependency configure flag.
1Configuration menu - View commit details
-
Copy full SHA for adb22d7 - Browse repository at this point
Copy the full SHA adb22d7View commit details
Commits on Oct 26, 2013
-
Merge branch 'installed-packageids' of https://github.com/haskell/cabal
Conflicts: Cabal/Distribution/Simple/Configure.hs cabal-install/Distribution/Client/Install.hs cabal-install/Distribution/Client/InstallPlan.hs cabal-install/Distribution/Client/Setup.hs
Configuration menu - View commit details
-
Copy full SHA for 5edb41a - Browse repository at this point
Copy the full SHA 5edb41aView commit details