commercialhaskell / commercialhaskell/stack

Invalid option `--internal-re-exec-version=2.1.3.1'

Open
#5,008 6 comments 1 reaction 0 assignees View on GitHub
component: nix type: bug
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

### Steps to reproduce

* git clone https://github.com/razvan-panda/postgresql-simple-migration-patches.git
* checkout branch `stack-build-failure`
* run `stack build --verbose`

### Expected

Build to succeed.

### Actual

```
[neo@nixos:~/Forks/postgresql-simple-migration-patches]$ stack build --verbose
2.1.3.1 x86_64 hpack-0.31.2
2019-08-18 19:55:01.453556: [debug] Checking for project config at: /home/neo/Forks/postgresql-simple-migration-patches/stack.yaml
2019-08-18 19:55:01.454475: [debug] Loading project config file stack.yaml
2019-08-18 19:55:01.462554: [debug] SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2019-08-17 18:55:01.462516984 UTC]
2019-08-18 19:55:01.463412: [debug] Using package location completions from a lock file
2019-08-18 19:55:01.716822: [debug] PATH is: Just "/home/neo/bin:/run/wrappers/bin:/home/neo/.local/bin:/home/neo/.nix-profile/bin:/etc/profiles/per-user/neo/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"
2019-08-18 19:55:01.716996: [debug] Using a nix-shell environment from file: /home/neo/Forks/postgresql-simple-migration-patches/shell.nix
2019-08-18 19:55:01.717263: [debug] Run process: /run/current-system/sw/bin/nix-shell /home/neo/Forks/postgresql-simple-migration-patches/shell.nix --arg ghc "with (import {}); haskell.compiler.ghc822" --run "'/nix/store/3gmxrznhj9gb3n2vj0cyp7a529755kwk-stack-2.1.3.1/bin/stack' $STACK_IN_NIX_EXTRA_ARGS '--internal-re-exec-version=2.1.3.1' 'build' '--verbose'"
2.1.3.1 x86_64 hpack-0.31.2
2019-08-18 19:55:04.120020: [debug] Checking for project config at: /home/neo/Forks/postgresql-simple-migration-patches/stack.yaml
2019-08-18 19:55:04.120310: [debug] Loading project config file stack.yaml
2019-08-18 19:55:04.134596: [debug] SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2019-08-17 18:55:04.134297709 UTC]
2019-08-18 19:55:04.136239: [debug] Using package location completions from a lock file
2019-08-18 19:55:04.384929: [debug] PATH is: Just "/nix/store/mn4jdnhkz12a6yd6jg6wvb4mqpxf8q1f-bash-interactive-4.4-p23/bin:/nix/store/qw1ryidvqidw3wgniy2m5369840jblpy-ghc-8.6.4-with-packages/bin:/nix/store/gvshp9yvc6gql09r3cyryj2zgsnfk6br-ghc-8.6.4/bin:/nix/store/ghzg4kg0sjif58smj2lfm2bdvjwim85y-gcc-wrapper-7.4.0/bin:/nix/store/d4n93jn9fdq8fkmkm1q8f32lfagvibjk-gcc-7.4.0/bin:/nix/store/f5wl80zkrd3fc1jxsljmnpn7y02lz6v1-glibc-2.27-bin/bin:/nix/store/d9s1kq1bnwqgxwcvv4zrc36ysnxg8gv7-coreutils-8.30/bin:/nix/store/rbpyfy6413aqpik9aj6p3a2syd1mda68-binutils-wrapper-2.31.1/bin:/nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin:/nix/store/f5wl80zkrd3fc1jxsljmnpn7y02lz6v1-glibc-2.27-bin/bin:/nix/store/d9s1kq1bnwqgxwcvv4zrc36ysnxg8gv7-coreutils-8.30/bin:/nix/store/mym79p27mpwc9ll22xfvchb3pizy4khw-remove-references-to/bin:/nix/store/s7p0wfbdfbq307zgifhnh6w8sfjvy64y-patchelf-0.9/bin:/nix/store/gis2bz09gr9sgv1xiimyszcgv2grknpj-ncurses-6.1-20190112/bin:/nix/store/gis2bz09gr9sgv1xiimyszcgv2grknpj-ncurses-6.1-20190112/bin:/nix/store/gvshp9yvc6gql09r3cyryj2zgsnfk6br-ghc-8.6.4/bin:/nix/store/ghzg4kg0sjif58smj2lfm2bdvjwim85y-gcc-wrapper-7.4.0/bin:/nix/store/d4n93jn9fdq8fkmkm1q8f32lfagvibjk-gcc-7.4.0/bin:/nix/store/f5wl80zkrd3fc1jxsljmnpn7y02lz6v1-glibc-2.27-bin/bin:/nix/store/d9s1kq1bnwqgxwcvv4zrc36ysnxg8gv7-coreutils-8.30/bin:/nix/store/rbpyfy6413aqpik9aj6p3a2syd1mda68-binutils-wrapper-2.31.1/bin:/nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin:/nix/store/f5wl80zkrd3fc1jxsljmnpn7y02lz6v1-glibc-2.27-bin/bin:/nix/store/d9s1kq1bnwqgxwcvv4zrc36ysnxg8gv7-coreutils-8.30/bin:/nix/store/gvshp9yvc6gql09r3cyryj2zgsnfk6br-ghc-8.6.4/bin:/nix/store/mym79p27mpwc9ll22xfvchb3pizy4khw-remove-references-to/bin:/nix/store/gis2bz09gr9sgv1xiimyszcgv2grknpj-ncurses-6.1-20190112/bin:/nix/store/gis2bz09gr9sgv1xiimyszcgv2grknpj-ncurses-6.1-20190112/bin:/nix/store/d9s1kq1bnwqgxwcvv4zrc36ysnxg8gv7-coreutils-8.30/bin:/nix/store/krhqmaqal0gklh15rs2bwrqzz8mg9lrn-findutils-4.6.0/bin:/nix/store/pmzw4y4465zmq0dc8r4xbwyrqsaj4s70-diffutils-3.7/bin:/nix/store/x1khw8x0465xhkv6w31af75syyyxc65j-gnused-4.7/bin:/nix/store/wnjv27b3j6jfdl0968xpcymlc7chpqil-gnugrep-3.3/bin:/nix/store/vvwggp5mni64yavsfqmbwvm1mn692ssn-gawk-4.2.1/bin:/nix/store/wmxqm38g1y1y7sd7s9vg7an3klffaiyz-gnutar-1.31/bin:/nix/store/ix2q5vnynzfgsi4nqj8pmcbx2kf78wrm-gzip-1.10/bin:/nix/store/b7x2qjfs6k1xk4p74zzs9kyznv29zap6-bzip2-1.0.6.0.1-bin/bin:/nix/store/8n7v99ii7cg694pz0cfch422zvkdqfv4-gnumake-4.2.1/bin:/nix/store/cinw572b38aln37glr0zb8lxwrgaffl4-bash-4.4-p23/bin:/nix/store/kafrvdnj0gadm2p9alh20xiimkmw8xwz-patch-2.7.6/bin:/nix/store/zrazw25gy012ip7vcqddw6lcc393qvcg-xz-5.2.4-bin/bin:/home/neo/bin:/run/wrappers/bin:/home/neo/.local/bin:/home/neo/.nix-profile/bin:/etc/profiles/per-user/neo/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"
2019-08-18 19:55:04.385137: [debug] Using a nix-shell environment from file: /home/neo/Forks/postgresql-simple-migration-patches/shell.nix
2019-08-18 19:55:04.386245: [debug] Run process: /run/current-system/sw/bin/nix-shell /home/neo/Forks/postgresql-simple-migration-patches/shell.nix --arg ghc "with (import {}); haskell.compiler.ghc822" --run "'/nix/store/3gmxrznhj9gb3n2vj0cyp7a529755kwk-stack-2.1.3.1/bin/stack' $STACK_IN_NIX_EXTRA_ARGS '--internal-re-exec-version=2.1.3.1' '--internal-re-exec-version=2.1.3.1' 'build' '--verbose'"
Invalid option `--internal-re-exec-version=2.1.3.1'

Usage: stack [--help] [--version] [--numeric-version] [--hpack-numeric-version]
[--docker*] [--nix*] ([--verbosity VERBOSITY] | [-v|--verbose] |
[--silent]) [--[no-]time-in-log] [--stack-root STACK-ROOT]
[--work-dir WORK-DIR] [--[no-]system-ghc] [--[no-]install-ghc]
[--arch ARCH] [--ghc-variant VARIANT] [--ghc-build BUILD]
[-j|--jobs JOBS] [--extra-include-dirs DIR] [--extra-lib-dirs DIR]
[--with-gcc PATH-TO-GCC] [--with-hpack HPACK]
[--[no-]skip-ghc-check] [--[no-]skip-msys] [--local-bin-path DIR]
[--[no-]modify-code-page] [--[no-]allow-different-user]
[--[no-]dump-logs] [--color|--colour WHEN] [--resolver RESOLVER]
[--compiler COMPILER] [--[no-]terminal]
[--stack-colors|--stack-colours STYLES] [--terminal-width INT]
[--stack-yaml STACK-YAML] [--lock-file ARG] COMMAND|FILE
```

### Stack version

```
$ stack --version
2.1.3.1 x86_64 hpack-0.31.2
```

### Method of installation

Installed using Nix.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.