Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ci: Allow check-upd job to fail | Daniel Gröber | 2020-02-08 | 1 | -0/+3 |
| | |||||
* | Fix invokeGhc when using relative paths | Daniel Gröber | 2020-01-11 | 1 | -4/+8 |
| | |||||
* | Fix Cabal version selection for Stack (esp. build-type:Custom) | Daniel Gröber | 2020-01-11 | 4 | -66/+53 |
| | | | | | | Previously we would pick up Stack's Cabal version with ghc-pkg on the global package-db. This however ignores that Stack also supports custom Setup.hs with the Cabal version from the snapshot instead. | ||||
* | Unset GHC_ENVIRONMENT and GHC_PACKAGE_PATH before invocing GHC | Daniel Gröber | 2020-01-11 | 3 | -19/+20 |
| | | | | | | | | | | | | When we are invoked under Stack (as part of HIE's test suite for example) our choice of Cabal library when invoking GHC gets interferred with by the GHC_ENVIRONMENT variable. Since we're just using boot packages simply unsetting GHC package related envvars seems like a fairly decent fix here. See the issue below for more details. Fixes #78 | ||||
* | Update stack-resolvers | Daniel Gröber | 2020-01-11 | 1 | -1/+1 |
| | |||||
* | ghc-session: Get GHC libdir from --print-libdir command | Daniel Gröber | 2019-12-29 | 3 | -7/+11 |
| | | | | | | Using ghc-paths bypasses cabal's rebuild checks though, for example, installing the compiler into a different directory will change the libdir but cabal won't recompile ghc-paths. | ||||
* | Fix unused argument warning | Daniel Gröber | 2019-12-29 | 1 | -4/+4 |
| | |||||
* | compile-test: Add program commandline options | Daniel Gröber | 2019-12-29 | 4 | -28/+42 |
| | |||||
* | Fix Cabal HEAD | Daniel Gröber | 2019-12-29 | 3 | -12/+14 |
| | |||||
* | Add GHC 8.8 support | Daniel Gröber | 2019-12-29 | 3 | -4/+10 |
| | |||||
* | ci: Switch to unified CI image | Daniel Gröber | 2019-12-28 | 2 | -5/+115 |
| | |||||
* | Update stack-resolvers | Daniel Gröber | 2019-12-28 | 1 | -1/+1 |
| | |||||
* | scripts: Add sdist to bump.sh | Daniel Gröber | 2019-12-28 | 1 | -1/+3 |
| | |||||
* | Release version 1.0.0.0 | Daniel Gröber | 2019-12-27 | 0 | -0/+0 |
| | |||||
* | Fix check-testdata.sh exit code propagation | Daniel Gröber | 2019-12-27 | 1 | -4/+15 |
| | |||||
* | Update stack-resolvers | Daniel Gröber | 2019-12-27 | 1 | -1/+1 |
| | |||||
* | Fix README typos | Daniel Gröber | 2019-12-26 | 1 | -3/+3 |
| | |||||
* | Fix GitLab pipeline badge URL | Daniel Gröber | 2019-12-26 | 1 | -1/+1 |
| | |||||
* | Tweak README and cabal description | Daniel Gröber | 2019-12-26 | 2 | -56/+49 |
| | |||||
* | Always include cabal-v2 project in discover | Luke Lau | 2019-12-21 | 1 | -2/+2 |
| | |||||
* | Restore lost [Note Stack Cabal Version] | Daniel Gröber | 2019-12-21 | 1 | -0/+14 |
| | |||||
* | Explicitly state package in component | Luke Lau | 2019-11-27 | 1 | -2/+2 |
| | | | | | | | This fixes scenarios such as: cabal: Ambiguous target 'test:foo'. It could be: A:test:foo (component) B:test:foo (component) | ||||
* | Store piPackages in sorted order | Daniel Gröber | 2019-11-03 | 1 | -2/+2 |
| | | | | | | Stack and Cabal are likely to have different orderings here. This has caused a difference in behaviour depending on the build-tool used downstream in HIE so for sanity's sake just sort the list. | ||||
* | Relax lower bound of Win32 down to ghc-8.2.2 version | jneira | 2019-10-15 | 1 | -1/+1 |
| | |||||
* | Change license to Apache2 | Daniel Gröber | 2019-09-29 | 23 | -900/+323 |
| | | | | | | | | All contributors have agreed on public record at https://github.com/DanielG/cabal-helper/issues/76 Fixes #76 | ||||
* | Add support for symlink farming as a workaround for Stack | Daniel Gröber | 2019-09-29 | 8 | -61/+222 |
| | | | | | | | | We want to be able to have the build tool use exactly the compiler and related executables we choose. Stack doesn't really like that mode of operation and insists on getting everything from PATH itself so this commit adds support for creating a temporary symlink farm to convince Stack to use the executables we want it to use. | ||||
* | ghc-session: Remove "stack not installed by CI scripts" error | Daniel Gröber | 2019-09-29 | 1 | -7/+1 |
| | | | | | We include the correct stack version in the CI images now and since the relevant stack version is now released it is easy to install for devs. | ||||
* | Remove Compat.ProgramDb module | Daniel Gröber | 2019-09-29 | 3 | -34/+7 |
| | |||||
* | Fix division factor for helper compilation timer | Daniel Gröber | 2019-09-17 | 1 | -1/+1 |
| | | | | Turns out I'm an idiot and 10eX is actually 10^(x+1). | ||||
* | Remove redundant timing code for compileHelper | Daniel Gröber | 2019-09-17 | 1 | -6/+0 |
| | |||||
* | Use plStackProjectDir instead of 'takeDirectory stack_yaml' | Daniel Gröber | 2019-09-17 | 1 | -4/+4 |
| | |||||
* | Fix some warnings | Daniel Gröber | 2019-09-17 | 3 | -4/+1 |
| | |||||
* | Update some code docs | Daniel Gröber | 2019-09-17 | 3 | -16/+26 |
| | |||||
* | Remove pretty-show dependency | Daniel Gröber | 2019-09-17 | 2 | -3/+2 |
| | | | | It's a bit heavy just for a single use-site for debugging. | ||||
* | ghc-session: Fix verbosity functions | Daniel Gröber | 2019-09-17 | 1 | -2/+2 |
| | |||||
* | Fix "Installing lib:Cabal" message | Daniel Gröber | 2019-09-17 | 1 | -1/+1 |
| | |||||
* | Implement cabal v2 backpack unit workaround | Daniel Gröber | 2019-09-17 | 4 | -11/+42 |
| | | | | See https://github.com/haskell/cabal/issues/6201 for details about the bug | ||||
* | ci: Update version lists | Daniel Gröber | 2019-09-17 | 3 | -2/+6 |
| | |||||
* | Fix check-testdata script | Daniel Gröber | 2019-09-17 | 2 | -3/+6 |
| | |||||
* | Make caching more fine grained | Daniel Gröber | 2019-09-17 | 3 | -112/+255 |
| | | | | | | | | | | | | | | | | | Previously we only had a cache for the project info and each unit info. However adding support for passing overridden compiler paths to build tools introduces a nasty data dependency: to fully configure 'Program's we (used to) need ProjInfo which needs an already configured 'Programs' in readProjInfo (ugh). After at least four failed attempts at untangling this I arrived at this solution. Simply splitting up the caches into some smaller parts does the trick and as a side product forced me to add an abstraction for the caching logic so as to not reapeat myself even more. Relatedly runQuery is not just a field accessor anymore but actualy does some IO of itself to manage the cache and make already configured 'Program's available to the rest of the library. | ||||
* | Export qeCallProcess | Daniel Gröber | 2019-09-17 | 1 | -0/+1 |
| | | | | Seems to have been missed when it was added. | ||||
* | Add verbose logging support for readProcess calls | Daniel Gröber | 2019-09-17 | 2 | -21/+27 |
| | |||||
* | ghc-session: Use new project building API | Daniel Gröber | 2019-09-17 | 1 | -19/+4 |
| | | | | | | | | | | | | | | One caveat: psiConfigure used to --only-configure the entire project. In theory we shouldn't even need to do that anymore because we reconfigure just the unit/target we need to before reading unit info. However cabal has a bug or well they might consider it just inconsistent behaviour in that instantiated backpack units' targets are not built by the target mentioned in plan.json so this per-unit reconfigure is currently broken there. The workaround is to just build the entire project before running a query for now. | ||||
* | Fix some import warnings | Daniel Gröber | 2019-09-17 | 2 | -2/+0 |
| | |||||
* | Break cycle between 'Package' and 'Unit' | Daniel Gröber | 2019-09-17 | 4 | -6/+10 |
| | |||||
* | Add exported interface for running build-tools | Daniel Gröber | 2019-09-17 | 6 | -71/+164 |
| | |||||
* | Explain "helper" in README | Daniel Gröber | 2019-09-17 | 1 | -0/+45 |
| | |||||
* | Refine ProjLoc docs | Daniel Gröber | 2019-09-17 | 1 | -18/+21 |
| | |||||
* | Introduce Package abstracton | Daniel Gröber | 2019-09-17 | 5 | -104/+170 |
| | | | | | After lamenting the fact that we don't have this in the docs I figured it really ought to be an exposed abstraction. | ||||
* | Make ChSetupEntrypoint carry the Main module file name | Daniel Gröber | 2019-09-17 | 2 | -4/+4 |
| |