-
Notifications
You must be signed in to change notification settings - Fork 701
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
v2-exec skips inplace package-ids for explicit compiler versions #6182
Comments
ok, I have seen even weirder behaviour, now the Automated test: https://gitlab.com/tseenshe/hsinspect/tree/27cf9acef6be15c8b6e825ec9a8be10bd2dc17b2/ running Or in descriptive terms:
then the |
Hmm, is it possible that any explicit change in the It would be good if there was a mode of operation of |
Adding |
and if any of the source files in the package are stale then the |
I'm starting to think that I'm expecting too much from What I need is a command that conjures the last env file that was built. I want to be able to support users who disable the env files with
and especially since they are going to be disabled by default soon (I heard?). |
Have you tried |
IIRC an env file is written out only after a build has succeeded (i.e. |
@DanielG nice idea! But the workflow is such that the user would be doing the build, and I would be invoking my command automatically from the text editor without knowing which options they used (maybe they used the command line to do it) so I really just want access to the env file that corresponds to the last compile. I thought |
BTW here is a demo of when my tool is working 😄 to give you an idea of what I want to achieve |
Read `plan.json` (check cabal-plan package) and construct env from it. Trying to do the same with shell magic is too much asked from cabal-install.
… On 8 Aug 2019, at 20.43, Tseen She ***@***.***> wrote:
BTW here is a demo of when my tool is working 😄 to give you an idea of what I want to achieve
https://twitter.com/ts33nsh3/status/1159513161726386176
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I think what you want to do is use the I take it you're using the GHC library but only accessing package-db stuff? Otherwise I'd reccommend you have a look at my |
@DanielG indeed I have a TODO note to use cabal-helper! I wanted to have a clear idea of which features I needed before bugging you about it 😄 I am also interested in hie-bios (eventually) but I am scared to add any dependencies because it complicates the installation process for end users. I still have many deployment and user-information gathering problems yet to solve. Where should we move that conversation to? Problems I have include: lauching correct version of my app for ghc version, finding users language/extensions/flags per package (and phase within that package), finding packagedb (ideally for the correct phase and package not just brute force like the cabal env file). @phadej it looks like cabal-helper is the only option. I think |
Describe the bug
In a very simple cabal project (any "hello world" style project) I observe the following
namely the
v2-exec
generated environment file is different depending on if I provide a specifically namedghc
or the system default. In fact-w ghc
may be omitted and the same is observed.Of course, I expect them to be the same! It seems that the provision of a specific version of ghc rather than my system default is causing the env file to be broken.
A consequence is that tooling launched with
v2-exec
and a specific compiler version is broken.System informataion
If I alternate between
cabal v2-build -w ghc
andcabal v2-build -w ghc-8.4.4
before the commands above, then it flips the results!To eliminate the noise from the project-generated env file I have tried this with
but it makes no difference.
In addition, if I use
with-compiler: ghc-8.4.4
in thecabal.project
, then the-w ghc
run is the broken one.So I think there is definitely something funny going on with custom, explicit, compilers.
The text was updated successfully, but these errors were encountered: