A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/commercialhaskell/stack/issues/4006 below:

SDist code deling with custom-setup incorrect · Issue #4006 · commercialhaskell/stack · GitHub

When uploading http-streams using stack upload . (ie the sdist step) I get the following warning:

Warning: In getPackageArgs: custom-setup in use, but no dependency map present
Could not find custom-setup dep: Cabal
Could not find custom-setup dep: base

which is weird because the .cabal file in question has what I was told to put there previously:

...
custom-setup
  setup-depends:     base >= 4.5,
                     Cabal >= 1.24

...

I asked in the Haskell channel at work and the epic @SamRoberts read through the stack code and in short order found the message is emitted from Execute.hs's function withSingleContext. Its fourth argument is a Maybe (Map something something).

This appears to be called from SDist.hs where the fourth argument is hard coded to Nothing. Hence warning.

Seems either the Nothing is wrong and we need to pass in the custom-setup (?) map or the warning code needs to know that it's not going to actually get a map and not warn.

AfC

feel free to change the issue title to something more helpful

domenkozar, jeremyjh, valpackett, rickowens and cdepillabout


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4