Skip to content
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

build failure #11

Open
DanBurton opened this issue Dec 9, 2017 · 1 comment
Open

build failure #11

DanBurton opened this issue Dec 9, 2017 · 1 comment

Comments

@DanBurton
Copy link

Build failure as seen on the stackage build server:

Building library for language-dockerfile-0.3.6.0..
[ 1 of 16] Compiling Language.Dockerfile.Bash ( src/Language/Dockerfile/Bash.hs,
 dist/build/Language/Dockerfile/Bash.o )

src/Language/Dockerfile/Bash.hs:9:81: error:
    • Couldn't match expected type ‘CheckSpec’
                  with actual type ‘Maybe Shell -> CheckSpec’
    • Probable cause: ‘spec’ is applied to too few arguments
      In the second argument of ‘checkScript’, namely ‘spec’
      In the second argument of ‘($)’, namely ‘checkScript si spec’
      In the second argument of ‘($)’, namely
        ‘runIdentity $ checkScript si spec’
  |
9 | shellcheck bashScript = map comment $ crComments $ runIdentity $ checkScript si spec
  |                                                                                 ^^^^


src/Language/Dockerfile/Bash.hs:12:38: error:
    • Couldn't match expected type ‘Bool’ with actual type ‘[a0]’
    • In the third argument of ‘CheckSpec’, namely ‘exclusions’
      In the expression: CheckSpec filename script exclusions (Just Bash)
      In an equation for ‘spec’:
          spec = CheckSpec filename script exclusions (Just Bash)
   |
12 |     spec = CheckSpec filename script exclusions (Just Bash)
   |                                      ^^^^^^^^^^

src/Language/Dockerfile/Bash.hs:12:50: error:
    • Couldn't match expected type ‘[Integer]’
                  with actual type ‘Maybe Shell’
    • In the fourth argument of ‘CheckSpec’, namely ‘(Just Bash)’
      In the expression: CheckSpec filename script exclusions (Just Bash)
      In an equation for ‘spec’:
          spec = CheckSpec filename script exclusions (Just Bash)
   |
12 |     spec = CheckSpec filename script exclusions (Just Bash)
   |                                                  ^^^^^^^^^

I'll try to see if I can reproduce it locally with the next stackage nightly snapshot.

@DanBurton
Copy link
Author

Here's how I was able to reproduce locally:

$ stack unpack language-dockerfile-0.3.6.0 && cd language-dockerfile-0.3.6.0
$ vi stack.yaml # add the stack.yaml below
$ stack build
# stack.yaml
resolver: nightly-2017-12-09
extra-deps:
- ShellCheck-0.4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant