Github messages for voidlinux
 help / color / mirror / Atom feed
From: pullmoll <pullmoll@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: stack: update to 2.3.1, lts-15.5
Date: Thu, 28 May 2020 14:29:03 +0200	[thread overview]
Message-ID: <20200528122903.okpJhXsJrJ5nHgqiDX60g3XGgFJFoQqHpHiZ3AwsI1E@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22377@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 7599 bytes --]

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/pull/22377#issuecomment-635315105

Comment:
The patch to disambiguate the `LTS`, `Nightly`, and `SnapName` gets the build farther than before.
This is the current error message for `src/Stack/Config.hs`:
```
[ 68 of 109] Compiling Stack.Config     ( src/Stack/Config.hs, /builddir/stack-2.3.1/dist-newstyle/build/x86_64-linux/ghc-8.8.3/stack-2.3.1/build/Stack/Config.o )

src/Stack/Config.hs:158:32: error:
    • Variable not in scope:
        nightlySnapshotLocation
          :: time-1.9.3:Data.Time.Calendar.Days.Day -> RawSnapshotLocation
    • Perhaps you meant ‘defaultSnapshotLocation’ (imported from Stack.Prelude)
    |
158 |             ARLatestNightly -> nightlySnapshotLocation . snapshotsNightly <$> getSnapshots
    |                                ^^^^^^^^^^^^^^^^^^^^^^^

src/Stack/Config.hs:163:40: error:
    • Variable not in scope:
        ltsSnapshotLocation :: Int -> Int -> RawSnapshotLocation
    • Perhaps you meant one of these:
        ‘snapshotLocation’ (imported from Stack.Prelude),
        ‘smwSnapshotLocation’ (imported from Stack.Types.SourceMap)
    |
163 |                     Just y -> return $ ltsSnapshotLocation x y
    |                                        ^^^^^^^^^^^^^^^^^^^

src/Stack/Config.hs:169:37: error:
    • Variable not in scope:
        ltsSnapshotLocation :: IntMap.Key -> Int -> RawSnapshotLocation
    • Perhaps you meant one of these:
        ‘snapshotLocation’ (imported from Stack.Prelude),
        ‘smwSnapshotLocation’ (imported from Stack.Types.SourceMap)
    |
169 |                         in return $ ltsSnapshotLocation x y
    |                                     ^^^^^^^^^^^^^^^^^^^

src/Stack/Config.hs:177:24: error:
    • Variable not in scope:
        ltsSnapshotLocation :: IntMap.Key -> Int -> RawSnapshotLocation
    • Perhaps you meant one of these:
        ‘snapshotLocation’ (imported from Stack.Prelude),
        ‘smwSnapshotLocation’ (imported from Stack.Types.SourceMap)
    |
177 |     let mlts = uncurry ltsSnapshotLocation <$>
    |                        ^^^^^^^^^^^^^^^^^^^

src/Stack/Config.hs:179:23: error:
    • Variable not in scope:
        nightlySnapshotLocation
          :: time-1.9.3:Data.Time.Calendar.Days.Day -> RawSnapshotLocation
    • Perhaps you meant ‘defaultSnapshotLocation’ (imported from Stack.Prelude)
    |
179 |     pure $ fromMaybe (nightlySnapshotLocation (snapshotsNightly snapshots)) mlts
    |                       ^^^^^^^^^^^^^^^^^^^^^^^

src/Stack/Config.hs:374:6: error:
    • Couldn't match expected type ‘RIO env a’
                  with actual type ‘(PantryConfig -> RIO env0 a0) -> RIO env0 a0’
    • Probable cause: ‘withPantryConfig’ is applied to too few arguments
      In a stmt of a 'do' block:
        withPantryConfig
          pantryRoot
          hsc
          (maybe HpackBundled HpackCommand
             $ getFirst configMonoidOverrideHpack)
          clConnectionCount
          (fromFirst defaultCasaRepoPrefix configMonoidCasaRepoPrefix)
          defaultCasaMaxPerRequest
          (\ configPantryConfig
             -> initUserStorage
                  (configStackRoot </> relFileStorage)
                  (\ configUserStorage -> inner Config {..}))
      In the expression:
        do mstackWorkEnv <- liftIO $ lookupEnv stackWorkEnvVar
           let mproject = ...
               configAllowLocals = ...
           configWorkDir0 <- maybe
                               (return relDirStackWork) (liftIO . parseRelDir) mstackWorkEnv
           let configWorkDir = fromFirst configWorkDir0 configMonoidWorkDir
               configLatestSnapshot
                 = fromFirst
                     "https://s3.amazonaws.com/haddock.stackage.org/snapshots.json"
                     configMonoidLatestSnapshot
               ....
           ....
      In an equation for ‘configFromConfigMonoid’:
          configFromConfigMonoid
            configStackRoot
            configUserConfigPath
            configResolver
            configProject
            ConfigMonoid {..}
            inner
            = do mstackWorkEnv <- liftIO $ lookupEnv stackWorkEnvVar
                 let mproject = ...
                     ....
                 configWorkDir0 <- maybe
                                     (return relDirStackWork) (liftIO . parseRelDir) mstackWorkEnv
                 ....
    • Relevant bindings include
        inner :: Config -> RIO env a (bound at src/Stack/Config.hs:193:36)
        configFromConfigMonoid :: Path Abs Dir
                                  -> Path Abs File
                                  -> Maybe AbstractResolver
                                  -> ProjectConfig (Project, Path Abs File)
                                  -> ConfigMonoid
                                  -> (Config -> RIO env a)
                                  -> RIO env a
          (bound at src/Stack/Config.hs:191:1)
    |
374 |      withPantryConfig
    |      ^^^^^^^^^^^^^^^^...

src/Stack/Config.hs:381:32: error:
    • Couldn't match expected type ‘RawSnapshotLocation’
                  with actual type ‘RIO env a’
    • In the expression:
        initUserStorage
          (configStackRoot </> relFileStorage)
          (\ configUserStorage -> inner Config {..})
      In the 7th argument of ‘withPantryConfig’, namely
        ‘(\ configPantryConfig
            -> initUserStorage
                 (configStackRoot </> relFileStorage)
                 (\ configUserStorage -> inner Config {..}))’
      In a stmt of a 'do' block:
        withPantryConfig
          pantryRoot
          hsc
          (maybe HpackBundled HpackCommand
             $ getFirst configMonoidOverrideHpack)
          clConnectionCount
          (fromFirst defaultCasaRepoPrefix configMonoidCasaRepoPrefix)
          defaultCasaMaxPerRequest
          (\ configPantryConfig
             -> initUserStorage
                  (configStackRoot </> relFileStorage)
                  (\ configUserStorage -> inner Config {..}))
    • Relevant bindings include
        inner :: Config -> RIO env a (bound at src/Stack/Config.hs:193:36)
        configFromConfigMonoid :: Path Abs Dir
                                  -> Path Abs File
                                  -> Maybe AbstractResolver
                                  -> ProjectConfig (Project, Path Abs File)
                                  -> ConfigMonoid
                                  -> (Config -> RIO env a)
                                  -> RIO env a
          (bound at src/Stack/Config.hs:191:1)
    |
381 |        (\configPantryConfig -> initUserStorage
    |                                ^^^^^^^^^^^^^^^...

src/Stack/Config.hs:383:39: error:
    • Couldn't match expected type ‘PantryConfig’
                  with actual type ‘Stack.Prelude.SnapName’
    • In the ‘configPantryConfig’ field of a record
      In the first argument of ‘inner’, namely ‘Config {..}’
      In the expression: inner Config {..}
    |
383 |          (\configUserStorage -> inner Config {..}))
    |                                       ^^^^^^^^^^^
=> ERROR: stack-2.3.1_1: do_build: 'HOME=$PWD cabal new-build ${makejobs} --flag disable-git-info' exited with 1
=> ERROR:   in do_build() at srcpkgs/stack/template:24
```

  reply	other threads:[~2020-05-28 12:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-28 12:26 [PR PATCH] " pullmoll
2020-05-28 12:29 ` pullmoll [this message]
2020-05-31  2:20 ` pullmoll
2020-05-31  2:44 ` [PR PATCH] [Updated] " pullmoll
2020-05-31  2:46 ` pullmoll
2020-05-31 11:04 ` [PR PATCH] [Updated] " pullmoll
2020-05-31 11:08 ` [PR PATCH] [Updated] stack: update to 2.3.1 pullmoll
2020-05-31 11:13 ` pullmoll
2020-05-31 11:23 ` pullmoll
2020-05-31 11:57 ` [PR PATCH] [Updated] " pullmoll
2020-05-31 12:25 ` [PR PATCH] [Merged]: " pullmoll

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200528122903.okpJhXsJrJ5nHgqiDX60g3XGgFJFoQqHpHiZ3AwsI1E@z \
    --to=pullmoll@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).